Presentation is loading. Please wait.

Presentation is loading. Please wait.

Data Access Layer Shahed Chowdhuri Using Code-First Migrations.

Similar presentations


Presentation on theme: "Data Access Layer Shahed Chowdhuri Using Code-First Migrations."— Presentation transcript:

1 Data Access Layer Shahed Chowdhuri Using Code-First Migrations

2 Thanks to our Sponsors for keeping the fires lit

3 TDD (Test Driven Development) BDD (Behavior Driven Development) CI (Continuous Integration) CD (Continuous Delivery) Introduction ASP.NET MVC DB Enterprise Web Application  Looking for Ways to Improve & Modernize  Motivation behind this design?  Our desire to do the following:

4 Tech Check ASP.NET MVC Entity Framework EF Code-First Development EF Code-First Development EF Code-First Migrations Are you familiar with …?

5 Options and Alternatives Database- First (EDMX) Model-First (Visual Designer) Code-First (automatic migrations) Code-First (manual migrations)

6 What are we trying to solve?

7 DAL: Agenda 1. Models & Mapping 2. Connection Strings 3. Enable Migrations 4. Update Database 5. Push Code + Migrate Server DB 6. Process Workflow

8 1. Models & Mapping DBContext.OnModelCreating()

9 2. Connection Strings

10 3. Enable Migrations

11 migration code 4. Update Database model code migration code + seed dev DB (sql)

12 5. Push Code + Migrate Server DB code push code CI code pull code migrate.exe Server DB

13 6. Process Workflow dev team DB architects communication DB

14 Code Walkthrough

15 DAL: Conclusion Code-First Migrations Dev Team Synchronized Server Deployment Database Versioning Continuous Development

16 Resources EF Code First Migrations on MSDN: – http://msdn.microsoft.com/en-US/data/jj591621http://msdn.microsoft.com/en-US/data/jj591621 Web.config & configSource: –http://wakeupandcode.com/all-your-database-are-belong-to-us/http://wakeupandcode.com/all-your-database-are-belong-to-us/ PluralSight EF Migrations video tutorial: –http://pluralsight.com/training/Courses/TableOfContents/efmigrationshttp://pluralsight.com/training/Courses/TableOfContents/efmigrations


Download ppt "Data Access Layer Shahed Chowdhuri Using Code-First Migrations."

Similar presentations


Ads by Google