MVC Project 如何利用EF(reverse model) Data Binding 已有的数据库?# DotNet - 窗口里的风景
w*7
1 楼
You can use "Entity Framework" to create a model from a database, WPF and
Window Form can consume this model. I am not sure about Webform (I think it
could).
But for MVC, the reverse engineering model is used ObjectSet and Objectquery
, Is there any way to implement the model directly in MVC as Data Domain?
Or you have to use code first to build the data model and set connectting
string to direct connect to database?
Window Form can consume this model. I am not sure about Webform (I think it
could).
But for MVC, the reverse engineering model is used ObjectSet and Objectquery
, Is there any way to implement the model directly in MVC as Data Domain?
Or you have to use code first to build the data model and set connectting
string to direct connect to database?