Created
October 11, 2017 15:30
-
-
Save cosoria/dcd0439297ac925332cd2896e86073bf to your computer and use it in GitHub Desktop.
Sample Application DbContext
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 class ApplicationDbContext<TContext> : EntityFrameworkContext<TContext> where TContext : DbContext, IEntityFrameworkContext | |
{ | |
protected ApplicationDbContext() : this(new ConnectionStringProvider().GetDefaultConnectionString()) | |
{ | |
} | |
protected ApplicationDbContext(string nameOrConnectionString) : base(nameOrConnectionString) | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment