LINQ to SQL未映射的属性 [英] LINQ to SQL Unmapped Property

查看:55
本文介绍了LINQ to SQL未映射的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在设计器中添加自定义属性,并且不将其绑定到列?我摆弄了一些设置,以使该属性成为部分类.有没有办法在ORM设计器中显示此字段?

Is it possible to add a custom property in the designer and have it not bound to a column? I fiddled with the settings a bit settled on making a partial class with the property. Is there a way to show this field in the ORM designer?

推荐答案

LINQ-to-SQL设计器正在维护映射.未映射的属性需要放在单独的局部类中.

The LINQ-to-SQL designer is maintaining the mapping. Unmapped properties need to go in a separate partial class.

这篇关于LINQ to SQL未映射的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆