Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change EF "Seeding the Database" chapter to someting like "Diving Deeper Into DbContext" #187

Open
askingalot opened this issue Aug 16, 2019 · 0 comments
Assignees

Comments

@askingalot
Copy link
Contributor

askingalot commented Aug 16, 2019

New chapter should discuss the things you can do it OnModelCreating()

  1. Seeding Data
    • Special attention should go to ApplicationUser
  2. Many-to-many relationships
  3. Turn off cascading deletes
  4. Setup default values for columns (i.e. GETDATE())

Current Chapter:
https://github.com/nashville-software-school/bangazon-inc/blob/master/book-4-bangazon/chapters/EF_SEEDING.md

Example ApplicationDbContext from bangazon boilerplate
https://github.com/nashville-software-school/csharp-bangazon-site-boilerplate/blob/master/Bangazon/Data/ApplicationDbContext.cs

@AdamSheaffer AdamSheaffer self-assigned this Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants