Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
モデル プロパティに注釈を付けて、データベースでこのフィールドを検索しないでください、またデータベース内のどのフィールドにもマップしないでくださいと EF に伝える属性は何ですか。これは概念モデルだけですか?
[マップされていません]
http://msdn.microsoftcom/en-us/library/system.componentmodel.dataannotations.schema.notmappedattribute.aspx
namespace Models { public partial class Foo { public virtual string FirstName { get; set; } public virtual string LastName { get; set; } [NotMapped] public string FullName { get { return FirstName + " " + LastName; } } } }