Just decorate your field/property with [NotMapped].
[NotMapped]
For example:
public class MyModel { public int Id { get; set; } public string Name { get; set; } [NotMapped] public string Type { get; set; } }
See http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.schema.notmappedattribute.aspx
2.1m questions
2.1m answers
60 comments
56.8k users