Ada*_*ell 49 .net c# entity-framework entity-framework-4 ef4-code-only
如何使用codefirst EF4创建非持久属性?
MS说有一个StoreIgnore属性,但我找不到它.
有没有办法使用EntityConfiguration设置它?
Mat*_*ear 62
在EF Code-First CTP5中,您可以使用[NotMapped]
注释.
using System.ComponentModel.DataAnnotations;
public class Song
{
public int Id { get; set; }
public string Title { get; set; }
[NotMapped]
public int Track { get; set; }
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
15959 次 |
最近记录: |