예제 #1
0
 static DotEntityDb()
 {
     EntityTableNames = new ConcurrentDictionary <Type, string>();
     QueryProcessor   = new QueryProcessor();
     SelectQueryMode  = SelectQueryMode.Explicit;
     ExcludedColumns  = new ConcurrentDictionary <Type, string[]>();
 }
예제 #2
0
 public static void Initialize(string connectionString, IDatabaseProvider provider, SelectQueryMode selectQueryMode = SelectQueryMode.Explicit)
 {
     ConnectionString         = connectionString;
     Provider                 = provider;
     Provider.QueryGenerator  = Provider.QueryGenerator ?? new DefaultQueryGenerator();
     Provider.TypeMapProvider = Provider.TypeMapProvider ?? new DefaultTypeMapProvider();
     SelectQueryMode          = selectQueryMode;
 }