Exclude a field/property from the database with Entity Framework 4 & Code-First

for future reference: you can use data annotations
MSDN EF – Code First Data Annotations

[NotMapped]        
public string AddressAs { get; set; }

Leave a Comment