0

Does the MVC framework, whether it be ASP.NET or Rails enforce you to develop better databases?

Since your database tables and fields will most likely map to classes and properties using OR/M, it only makes sense that this would force you to create a proper database structure from the beginning of development.

5 Answers 5

1

Physical data layer may be different (and usually is) from the entity model that's usually used by EF/NHib/likes.

But whenever you do any kind of abstraction of your data model to your code you do tend to change certain parts. These adaptations relate to flexibility of your OR/M. The more flexible it is less adaptations there will be.

1

I don't think it does.

MVC does not have anything to do with the database design, it is more towards proper architecture.

But it may indirectly improve the database design by introducing the use of model or domain driven design.

0

You underestimate the ability of people if you think any set of rules can successfully force someone to perform better.

4
  • Not what I meant. What I mean is that if you create a database with a bunch of tables and fields and then use LINQ to SQL for the OR/M, wouldn't the design of your database tables and fields have a positive/negative result on your classes and properties depending on how you developed the database from the beginning.
    – Xaisoft
    Jun 24, 2009 at 20:24
  • Well, if anything those additional tools and technologies increase the number of possible design flaws. Jun 24, 2009 at 20:27
  • It did seem a little confusing.
    – Xaisoft
    Jun 24, 2009 at 20:27
  • Spencer, that is what I mean, so doesn't it force you to improve your database design.
    – Xaisoft
    Jun 24, 2009 at 20:28
0

MVC framework is very much a "Model" centric architecture and it only allows you ti interact with your database in an efficient way, id does not force you to design a database in a particular way

1
  • I agree, but it does seem like in order for you to really get the full benefits of MVC, you need to have a sound database design.
    – Xaisoft
    Jun 24, 2009 at 20:29
0

As it's entirely possible to create an application using the MVC pattern that doesn't use a database at all, then the answer is no. I don't think the original implementation of MVC in Smalltalk-80 (as in 1980) was RDBMS-backed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.