Created
February 28, 2021 08:22
-
-
Save kelumKP/0002bb98a1c519c949003d61bbcf3f0e to your computer and use it in GitHub Desktop.
DBContext IContext file
This file contains 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 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