Exemplo n.º 1
0
 public XncfDatabaseData(IXncfDatabase xncfDatabaseRegister, string assemblyName)
 {
     XncfDatabaseRegister = xncfDatabaseRegister;
     AssemblyName         = assemblyName;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 获取指定 IXncfDatabase 关联的当前数据库上下文(DbContext)
 /// </summary>
 /// <param name="xncfDatabaseRegister">实现了 IXncfDatabase 的实体</param>
 /// <returns></returns>
 public Type GetXncfDbContextType(IXncfDatabase xncfDatabaseRegister)
 {
     return(GetXncfDbContextType(xncfDatabaseRegister.GetType()));
 }
Exemplo n.º 3
0
 /// <summary>
 /// 获取 EF Code First MigrationHistory 数据库表名
 /// </summary>
 /// <returns></returns>
 public static string GetDatabaseMigrationHistoryTableName(IXncfDatabase xncfDatabaseRegister)
 {
     return(GetDatabaseMigrationHistoryTableName(xncfDatabaseRegister.DatabaseUniquePrefix));
 }