WCF Service with DataContracts VS Default Entity Framework Entities Object -
what pros , cons of using wcf service datacontracts vs entity framework entities object?
if generate data contracts using ado.net self tracking entity generator classes in data layer.
what best way of using in wcf service? datacontract genrated ado.net self tracking entity generator exchnaged via service or wcf service still use default entity framework objects?
main advantage of stes (self tracking entities) implementation of change set. means can return ste web service's operation modify entity (or whole entity graph) , call operation post updated ste web service processing. ef automatically detect changes in ste , process them.
this not possible entity framework entities because can track changes if entity attached objectcontext
entity detached when returned web service operation.
drawback of stes have share assembly defines them among service , clients. stes are not interoperable solutions.
at moment projects developed third type of entities - pocos. pocos not able track changes when detached objectcontext
. feature of stes.
Comments
Post a Comment