entity framework - Does ASP .Net MVC have anything similar to Java's [Transient] attribute? -
as title says, there way in asp .net mvc (4) mark models property "transient" i.e. not persist database.
i looking create model of info stored in external system, need store reference of record in scheme , fetch info external scheme when needed. able using attributes or need implement sort of view model?
as part of name of language, think best practice include in viewmodel, populate when grab info @ first in controller, , not when go controller save it.
the thing comes close you're describing notmapped attribute entity framework know not create column field or persist database it. typically used properties precalculated (i.e. want quick way inquire sum total of 3 of fields).
entity-framework transient
No comments:
Post a Comment