相关疑难解决方法(0)

使用Entity Framework 4和Code-First从数据库中排除字段/属性

我想知道有没有办法从数据库中排除一些字段?例如:

public class Employee
{
    public int Id { get; set; }
    public string Name { get; set; }
    public string FatherName { get; set; }

    public bool IsMale { get; set; }
    public bool IsMarried { get; set; }

    public string AddressAs { get; set; }
}
Run Code Online (Sandbox Code Playgroud)

如何从数据库中排除AddressAs字段?

.net c# poco entity-framework-4 ef-code-first

26
推荐指数
3
解决办法
3万
查看次数

标签 统计

.net ×1

c# ×1

ef-code-first ×1

entity-framework-4 ×1

poco ×1