实体框架序列化 [英] Entity Framework Serialization
本文介绍了实体框架序列化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
因为实体生成的数据类型与SQL Server相关联,例如int?,bool?,double?,DateTime ?,我们如何在Web服务中使用它?我创建了dto对象,但还有其他方法吗?
Hi everyone,
Because entity generated data type is associated with SQL Server, like int?, bool?, double?, DateTime?, How we use it in web services? I created dto objects, but have others way?
推荐答案
我个人喜欢使用自我跟踪实体,请参阅本文
CTP功能介绍:实体框架的自跟踪实体(已更新) [
Personally I like to use Self Tracking Entities have a look at this article
Feature CTP Walkthrough: Self Tracking Entities for the Entity Framework (Updated)[^]
It seems to go over it in detail
这篇关于实体框架序列化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文