Created
September 3, 2012 11:08
-
-
Save andrew-t-moore/3608603 to your computer and use it in GitHub Desktop.
TestContext
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
public class Person { | |
public int Id { get; set; } | |
public string FirstName { get; set; } | |
public string LastName { get; set; } | |
} | |
public class Pet { | |
public int Id { get; set; } | |
public string Name { get; set; } | |
public Person Owner { get; set; } | |
} | |
public class TestContext : DbContext { | |
public DbSet<Pet> Pet { get; set; } | |
public DbSet<Person> Person { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment