Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/314.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# WCF数据服务,don';不要暴露所有列_C#_Entity Framework_Wcf Data Services - Fatal编程技术网

C# WCF数据服务,don';不要暴露所有列

C# WCF数据服务,don';不要暴露所有列,c#,entity-framework,wcf-data-services,C#,Entity Framework,Wcf Data Services,我的WCF数据服务绑定到EDMX,其中包含我不想通过数据服务公开的某些列。如何隐藏这些列?如果使用的是Data Services版本5,则可以使用该属性: [IgnoreProperties("Email", "Password")] public partial class User { } 这仅适用于反射提供程序,这将无法与EF ProviderIf一起使用。因此,有其他选择吗?

我的WCF数据服务绑定到EDMX,其中包含我不想通过数据服务公开的某些列。如何隐藏这些列?

如果使用的是Data Services版本5,则可以使用该属性:

[IgnoreProperties("Email", "Password")]
public partial class User 
{

}

这仅适用于反射提供程序,这将无法与EF ProviderIf一起使用。因此,有其他选择吗?