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.
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.
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
Post a Comment