Пример #1
0
        public override Database GetDatabase(ConnectionStringSettings conn, DbProviderFactory factory)
        {
            Database db = base.GetDatabase(conn, factory);

            SQLiteRegistrar.Register(db.ServiceProvider);
            return(db);
        }
Пример #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);
        }
Пример #3
0
 public void Register(Incubation.Incubator incubator)
 {
     SQLiteRegistrar.Register(incubator);
 }
Пример #4
0
 public void Register <T>() where T : Dao
 {
     SQLiteRegistrar.Register <T>();
 }
Пример #5
0
 public void Register(Type daoType)
 {
     SQLiteRegistrar.Register(daoType);
 }
Пример #6
0
 public void Register(string connectionName)
 {
     SQLiteRegistrar.Register(connectionName);
 }
Пример #7
0
 public void Register(Database database)
 {
     SQLiteRegistrar.Register(database);
 }