TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Blumonde
NA
78
28.7k
MVC Crud Ado Model EF
Jul 24 2016 8:50 PM
Hello,
Everytime I build a new crud on a table from the SAME database via the Model folder, MVC
Ado Model EF
wants to create a new connectionstring in web.config. Scaffolding via the Controller folder will not work if I force Ado Model EF to use the existing connectionstring in web.config. Scaffolding will only work if I allow
Ado Model EF to
create a new connectionstring in web.config.
Can someone please explain to me why does MVC do this? And what should I do in this case? I have like a hundred tables in the same database. Does it mean I have to have 100 connectionstrings in web.config? This is ridiculous if this is how Microsoft built MVC.
Thanks in advance.
Reply
Answers (
3
)
please give the ans of this question
#, MVC 4, SQL database