static DotEntityDb() { EntityTableNames = new ConcurrentDictionary <Type, string>(); QueryProcessor = new QueryProcessor(); SelectQueryMode = SelectQueryMode.Explicit; ExcludedColumns = new ConcurrentDictionary <Type, string[]>(); }
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; }