Esempio n. 1
0
 /// <summary>
 /// Use SqlServer Default
 /// </summary>
 /// <param name="connectionString">Connection string for SQL Server</param>
 public DbContextConfiguration(string connectionString)
 {
     ConnectionString         = connectionString;
     UseOnMemory              = false;
     UseSqlite                = false;
     UseSqlServer             = true;
     _dataAccessConfiguration = new DataAccessConfiguration(connectionString);
 }
Esempio n. 2
0
 /// <summary>
 /// Use Sqlite or Database on Memory
 /// </summary>
 /// <param name="connectionString">Connection string only for Sqlite</param>
 /// <param name="useSqlite"></param>
 /// <param name="useOnMemory"></param>
 public DbContextConfiguration(string connectionString, bool useSqlite, bool useOnMemory = false)
 {
     ConnectionString         = connectionString;
     UseOnMemory              = useOnMemory;
     UseSqlite                = useSqlite;
     UseSqlServer             = false;
     _dataAccessConfiguration = new DataAccessConfiguration(connectionString, useSqlite, useOnMemory);
 }