开发者

create object for hold data in entity-framework

开发者 https://www.devze.com 2023-03-12 06:00 出处:网络
I use entity-framework in my project i want to define and object that the user entry data And finally insert the all data which user entry in database

I use entity-framework in my project i want to define and object that the user entry data

And finally insert the all data which user entry in database

But i need an o开发者_如何学Pythonbject that hold the data before final insert(like dataset)

please advise me


I think it might be best that you have a further read of the entity framework. There are many examples, articles, threads, etc regarding EF4 and it's predecessors that should help you along your way.

To address what I think you mean by your question, you can take a look at using repository patterns. There are many variations, but here's a link to get you started:

http://blogs.microsoft.co.il/blogs/gilf/archive/2010/01/20/using-repository-pattern-with-entity-framework.aspx

I hope that helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消