Created
December 28, 2012 22:21
-
-
Save tugberkugurlu/4402496 to your computer and use it in GitHub Desktop.
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 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