无营养贴
在想要不映射的字段上加上[NotMapped]标记
如:
[NotMapped]
public string Status { get; set; }
本文介绍了一种在对象映射过程中排除特定字段的方法。通过使用[NotMapped]标记,可以有效避免不需要的字段被映射到数据库或其他数据存储中。
无营养贴
在想要不映射的字段上加上[NotMapped]标记
如:
[NotMapped]
public string Status { get; set; }

被折叠的 条评论
为什么被折叠?