wcf - Add additional Property to a DBML generated Entity not in database -


what's best way add additional property called "updatetype" "user" entity via linq sql dbml file? there no associated database field in "user" database table. property want included in "user" class.
alt text

i have serializable mode = unidirectional dbml designer automatically orders of datamember properties can't extend partial class , add new property if wasn't serialized wcf. alt text

if add property want updatetype included in order can insure order doesn't change , break service's contract.

this bit out of box, maybe map entities dto, , use dtos wcf instead. in way, can change model wish (eg. add partial class) , , use model<->dto mapping adjust differences.

automapper might useful in scenario.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -