更新时间:2023-02-02 20:35:26
持久层的设计在很大程度上取决于您的应用目的,并且对象的生命周期得以持久. NoSQL 解决方案将提供一种简单的方法来对应用程序的对象进行序列化/反序列化.MVC 4将实体框架作为其代码优先"选项进行持久化对象放入SQL Server支持的数据存储中.在我共享的链接上,实体框架有很多教程.
The design of your persistence layer depends alot on the purpose of your applciation, and the lifetime of the objects persisted. A NoSQL solution would provide a simple way to serialize/deserialize objects your application. MVC 4 pushes Entity Frameworkas its "Code-First" option for persisting objects into a SQL Server backed data store. Entity Framework has plenty of tutorials at the link I shared.