Skip to content

Instantly share code, notes, and snippets.

@andrew-t-moore
Created September 3, 2012 11:08
Show Gist options
  • Save andrew-t-moore/3608603 to your computer and use it in GitHub Desktop.
Save andrew-t-moore/3608603 to your computer and use it in GitHub Desktop.
TestContext
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