ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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

user-image
تم إضافة السؤال من قبل Umair Khan , Web Developer , Innovative Designers
تاريخ النشر: 2017/03/31
Shakir Ali
من قبل 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
من قبل 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
من قبل 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
من قبل 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
من قبل Ahmed Gaduo , Technical Supervisor , Al Ahly Momkn For E-payments

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.

المزيد من الأسئلة المماثلة