Beispiel #1
0
        public override Database GetDatabase(ConnectionStringSettings conn, DbProviderFactory factory)
        {
            Database db = base.GetDatabase(conn, factory);

            SQLiteRegistrar.Register(db.ServiceProvider);
            return(db);
        }
Beispiel #2
0
        public ConnectionStringSettings Resolve(string connectionName)
        {
            string dbFile = GetDatabaseFilePath(connectionName);

            ConnectionStringSettings s = new ConnectionStringSettings();

            s.Name             = connectionName;
            s.ProviderName     = SQLiteRegistrar.SQLiteFactoryAssemblyQualifiedName();
            s.ConnectionString = string.Format("Data Source={0};Version=3;", dbFile);

            return(s);
        }
 public void Register(Incubation.Incubator incubator)
 {
     SQLiteRegistrar.Register(incubator);
 }
 public void Register <T>() where T : Dao
 {
     SQLiteRegistrar.Register <T>();
 }
 public void Register(Type daoType)
 {
     SQLiteRegistrar.Register(daoType);
 }
 public void Register(string connectionName)
 {
     SQLiteRegistrar.Register(connectionName);
 }
 public void Register(Database database)
 {
     SQLiteRegistrar.Register(database);
 }