コード例 #1
0
 protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
 {
     // get the class name of the caller to get a unique name for the database
     if (!optionsBuilder.IsConfigured ||
         optionsBuilder.Options.FindExtension <MySQLOptionsExtension>() == null)
     {
         optionsBuilder.UseMySQL(MySQLTestStore.GetContextConnectionString(this.GetType()));
     }
 }
コード例 #2
0
 public override TestStore GetOrCreate(string storeName)
 => MySQLTestStore.GetOrCreate(storeName);
コード例 #3
0
 public override TestStore Create(string storeName)
 => MySQLTestStore.Create(storeName);