Is it recommended to use Self Tracking Entities with WCF services?

前端 未结 2 910
暖寄归人
暖寄归人 2020-11-30 08:39

I want to know if using Self Tacking Entities (in Entity Framework) is recommended with WCF services? If yes, then can you guide me to a tutorial which may guide how to do t

2条回答
  •  时光取名叫无心
    2020-11-30 09:09

    I would avoid self tracking entities in general - I blogged about it here.

    Create your own DTOs and use them to manage the transfer of data - then biuold your POCO objects in the service and use them with entity framework for persistence

    If you want self tracking then there is a slightly cleaner approach here

提交回复
热议问题