Skip to content

Instantly share code, notes, and snippets.

@tugberkugurlu
Created December 28, 2012 22:21
Show Gist options
  • Save tugberkugurlu/4402496 to your computer and use it in GitHub Desktop.
Save tugberkugurlu/4402496 to your computer and use it in GitHub Desktop.
public interface IPeopleContext : IDisposable, IEntitiesContext {
IDbSet<Person> People { get; set; }
IDbSet<Book> Books { get; set; }
}
public interface IEntitiesContext : IDisposable {
DbEntityEntry<TEntity> Entry<TEntity>(TEntity entity) where TEntity : class;
IDbSet<TEntity> Set<TEntity>() where TEntity : class;
int SaveChanges();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment