コード例 #1
0
 public MyAssemblyLocator(IOptions <DbMigrationOptions> option)
 {
     _option            = option.Value;
     _entryAssembly     = Assembly.GetEntryAssembly();
     _dependencyContext = DependencyContext.Load(_entryAssembly);
 }
コード例 #2
0
 public MySqlDbTool(IOptions <DbMigrationOptions> option)
 {
     _options = option.Value;
 }
コード例 #3
0
 public IndexModel(IAssemblyLocator locator, IOptions <DbMigrationOptions> option, IDbTool dbTool)
 {
     _locator = locator;
     _options = option.Value;
     _dbTool  = dbTool;
 }
コード例 #4
0
 public static void UseMySql(this DbMigrationOptions self, string connection)
 {
     self.ConnectionString = connection;
 }