Skip to content

Instantly share code, notes, and snippets.

@kelumKP
Created February 28, 2021 08:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kelumKP/0002bb98a1c519c949003d61bbcf3f0e to your computer and use it in GitHub Desktop.
Save kelumKP/0002bb98a1c519c949003d61bbcf3f0e to your computer and use it in GitHub Desktop.
DBContext IContext file
public interface IContext
{
IDbSet<SampleTable> SampleTables { get; set; }
DbSet<TEntity> Set<TEntity>() where TEntity : class;
DbEntityEntry<TEntity> Entry<TEntity>(TEntity entity) where TEntity : class;
Database Database { get; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment