Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ApiDbContext : DbContext
- {
- public ApiDbContext() : base("Name=DbConnection")
- {
- }
- }
- public class RepositoryBase<TEntity> : IDisposable, IRepositoryBase<TEntity> where TEntity : class
- {
- ApiDbContext context = new ApiDbContext();
- }
Add Comment
Please, Sign In to add comment