标签: c# entity-framework wcf-data-services
我的WCF数据服务绑定到EDMX,其中包含我不希望通过数据服务公开的某些列。如何隐藏这些列?
答案 0 :(得分:1)
如果您使用的是Data Services版本5,则可以使用[IgnoreProperties]属性:
[IgnoreProperties]
[IgnoreProperties("Email", "Password")] public partial class User { }