C# EntityFramework 自定义数据库表名(一)
在数据实体上加 Table 属性,效果如下命名空间using System.ComponentModel.DataAnnotations.Schema;特别注意属性名称是 Table 一不小心会写成 TableName
·
在数据实体上加 Table 属性,效果如下
命名空间
using System.ComponentModel.DataAnnotations.Schema;
特别注意属性名称是 Table 一不小心会写成 TableName
更多推荐
已为社区贡献1条内容
所有评论(0)