Esempio n. 1
0
        public static void Register(Incubator incubator)
        {
            SQLiteConnectionStringResolver.Register();

            incubator.Set <IParameterBuilder>(() => new SQLiteParameterBuilder());
            incubator.Set <SqlStringBuilder>(() => new SQLiteSqlStringBuilder());
            incubator.Set <SchemaWriter>(() => new SQLiteSqlStringBuilder());
            incubator.Set <QuerySet>(() => new SQLiteQuerySet());
        }
Esempio n. 2
0
 private static void SetInitializerAndConnectionStringResolver(string connectionName)
 {
     DatabaseInitializers.Ignore <DefaultDatabaseInitializer>(connectionName);
     DatabaseInitializers.AddInitializer(new SQLiteDatabaseInitializer());
     SQLiteConnectionStringResolver.Register();
 }