Initial ...
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using xIds.Constants;
|
||||
|
||||
namespace xIds.Models
|
||||
{
|
||||
public class XDbInfo
|
||||
{
|
||||
private string _migrationAssembly;
|
||||
public XDbProviders ProviderType { get; set; }
|
||||
public string MigrationsAssembly
|
||||
{
|
||||
get
|
||||
{
|
||||
return _migrationAssembly;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
//
|
||||
_migrationAssembly = value;
|
||||
|
||||
//
|
||||
OptionsBuilder = b =>
|
||||
{
|
||||
b.MigrationsAssembly(value);
|
||||
};
|
||||
}
|
||||
}
|
||||
public Action<dynamic> OptionsBuilder { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System.Collections.Generic;
|
||||
using IdentityServer4.Models;
|
||||
using xIdentityModels.Descriptors;
|
||||
|
||||
namespace xIds.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// the resource Descriptors for Using on DbSeed
|
||||
/// </summary>
|
||||
public class XDbSeedDescriptor
|
||||
{
|
||||
public bool UpdateExists { get; set; }
|
||||
public ICollection<ApiScope> ApiScopes { get; set; }
|
||||
public ICollection<ApiResource> ApiResources { get; set; }
|
||||
public ICollection<IdentityResource> IdentityResources { get; set; }
|
||||
public ICollection<Client> Clients { get; set; }
|
||||
public ICollection<XIdentityUserDescriptor> Users { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user