ASP.NET MVC的独立数据库 [英] Independent database of ASP.NET MVC

查看:58
本文介绍了ASP.NET MVC的独立数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,当我们使用ORM时,MVC会影响数据库。此外,我的数据库有不需要在模型中使用的列,我不想改变编程。那么,数据库和MVC是否有任何独立的方式,或者至少数据库上没有删除/删除操作?



我有什么尝试过:



没什么。

As far as I know, the MVC affects the database when we use ORMs. Also, my database has columns that need not to use in Model and I'd like not to change from programming. So, is there any way for database and MVC to be independent or at least the removal/drop operation does not occur on the database?

What I have tried:

Nothing.

推荐答案

如果你不想要ORM来更新/插入/删除,只是不要使用那些做这些事情的方法,而是调用你自己的ADO东西。
If you don't want the ORM to update/insert/delete, simply don't use the methods that do those things, and call your own ADO stuff instead.


这篇关于ASP.NET MVC的独立数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆