Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Entity Framework: add property that don't map to database

Is it possible to add a property to an entity where the property is not supposed to map to the database?

like image 695
seddler Avatar asked May 05 '10 09:05

seddler


1 Answers

You need to mark the property in the custom partial class to "[NotMapped]". Hope this helps.

like image 140
Edd Avatar answered Nov 01 '22 06:11

Edd