Example #1
0
        public IdentityDbContext CreateDbContext(string[] args)
        {
            var builder = new DbContextOptionsBuilder <IdentityDbContext>();

            builder.Connection();

            return(new IdentityDbContext(builder.Options));
        }
Example #2
0
        public ApplicationDbContext CreateDbContext(string[] args)
        {
            var builder = new DbContextOptionsBuilder <ApplicationDbContext>();

            builder.Connection();

            return(new ApplicationDbContext(builder.Options));
        }
        public ConfigurationDbContext CreateDbContext(string[] args)
        {
            var builder = new DbContextOptionsBuilder <ConfigurationDbContext>();

            builder.Connection();

            return(new ConfigurationDbContext(builder.Options, new ConfigurationStoreOptions()));
        }
Example #4
0
        public PersistedGrantDbContext CreateDbContext(string[] args)
        {
            var builder = new DbContextOptionsBuilder <PersistedGrantDbContext>();

            builder.Connection();

            return(new PersistedGrantDbContext(builder.Options, new OperationalStoreOptions()));
        }
Example #5
0
 public static void Connection(this DbContextOptionsBuilder builder)
 {
     builder.Connection("Data Source=IdentityService.db;");
 }
Example #6
0
 public static void Connection(this DbContextOptionsBuilder builder)
 {
     builder.Connection("Data Source=Auth.db;");
 }