Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What would you prefer in asp.net mvc application development, database first approach or code first approach and why?

user-image
Question ajoutée par Umair Khan , Web Developer , Innovative Designers
Date de publication: 2017/03/31
Shakir Ali
par Shakir Ali , Full Stack Developer , https://www.freelancer.com

I prefer database first.

1. Because its easy to create tables and relationships.

2. You don't need to write extra code.

3. Easy to update.

Kirellos Rashad
par Kirellos Rashad , Software Development Engineer , CivilSoft

Actually, I would prefer the database first approach because :

1. It's simple to create the data model.

2. You don't have to write the table relations your code.

3. It's easier to update the database tables and the data model.

4. Fits for the huge data.

practically, for legacy reason, database-first is the way to go. The database exists, a database admin took care of it. But for MS unknown reasons, code-first is generally better, in the future, because you can just copy and paste scripts that will rebuild from scratch the database. You can mix both, this is what I do. The idea of database as core is fading. Code will be the new core.

Muhammad Wasif  Ali
par Muhammad Wasif Ali , Computer Instructor , AL. ILM Institute of Sciences and Commerce

Definately Database first.Because it's easy to define relations like reference keys, primary key, etcetera. Create your database structure and the visual studio will automatically generate the classes from it in entity framework. And after that, its easy to retrieve, put, update, delete DB data using it

Javed Ahmad
par Javed Ahmad , Senior Developer , HCL Technologies Ltd

I will Choose Data First Approach.

Because its reduces Line of code.

Its easy to create tables and relationships.

 

Ahmed Gaduo
par Ahmed Gaduo , Acting as Team Leader , Sure International Technology

I prefer Code First apprach ,

it's make me can use identity authrization and membership.

more easy to update tables ,

and can build the database with table and data if i want to do on application start.

 

it's perfect.

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?