Created
March 31, 2015 07:08
-
-
Save johnmmoss/850efa4b32c3b9782d5c to your computer and use it in GitHub Desktop.
Enitity Framework 6 Setting up Data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
context.Departments.Add(new Department() { Id = 1, Name = "Department 1" }); | |
context.Departments.Add(new Department() { Id = 2, Name = "Department 2" }); | |
context.Employees.Add(new Employee() { Id = 1, ForeName = "John" }); | |
context.Employees.Add(new Employee() { Id = 2, ForeName = "Mark" }); | |
context.Employees.Add(new Employee() { Id = 3, ForeName = "Mat" }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment