Ejemplo n.º 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()));
     }
 }
Ejemplo n.º 2
0
 public override TestStore GetOrCreate(string storeName)
 => MySQLTestStore.GetOrCreate(storeName);
Ejemplo n.º 3
0
 public override TestStore Create(string storeName)
 => MySQLTestStore.Create(storeName);