Skip to content

Instantly share code, notes, and snippets.

@manther
Created October 17, 2012 18:25
BookStoreContext class
public class BookStoreContext : ObjectContext
{
public BookStoreContext()
: base("name=BookStoreDemoEntities", "BookStoreDemoEntities")
{
}
public ObjectSet<Book> Books
{
get
{
if (books == null)
{
books = base.CreateObjectSet<Book>();
}
return books;
}
}
private ObjectSet<Book> books;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment