EF 4 Self Tracking Entities does not work as expected

前端 未结 5 1218
不思量自难忘°
不思量自难忘° 2021-01-25 18:16

I am using EF4 Self Tracking Entities (VS2010 Beta 2 CTP 2 plus new T4 generator). But when I try to update entity information it does not update to database as expected.

<
5条回答
  •  -上瘾入骨i
    2021-01-25 19:07

    You have to share assembly with STEs between client and service - that is the main point. Then when adding service reference make sure that "Reuse types in referenced assemblies" is checked.

    The reason for this is that STEs contain logic which cannot be transfered by "Add service reference", so you have to share these types to have tracing logic on client as well.

提交回复
热议问题