Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What first model or database?

My question is about what should be go first in software developing: database model or domain model? Or these notion are parallels? Thanks.

like image 918
Alexandr Avatar asked Apr 22 '11 13:04

Alexandr


People also ask

Is data model and database model same?

Database design is stored in the database schema, which is in turn stored in the data dictionary. Data model is a set or collection of construct used for creating a database and producing designs for the databases.

What is the first data model?

The first true commercial database system came available in 1964, was called the Integrated Data Store (IDS), and was developed by Charles Bachman, with General Electric supporting his research. IDS used the network model, described as a flexible way of representing objects and their relationships in a graph form.

What is the difference between code first model first and database first?

In code first approach we will first create entity classes with properties defined in it. Entity framework will create the database and tables based on the entity classes defined. So database is generated from the code. When the dot net code is run database will get created.


1 Answers

It depends on whether you're a database or an object person. Each one would claim supremacy and say that their specialty should be done first.

I'd disagree with both. The first thing you should do is understand your problem well. The model and schema will flow from that.

You can't get rid of the object-relational mismatch impedence, no matter what you do. Objects are instance-based; SQL is set-based. You'll still have the problem.

like image 123
duffymo Avatar answered Nov 04 '22 21:11

duffymo