/// <summary>
 /// Use SQLite for backend append-only store.
 /// </summary>
 /// <param name="cfg"></param>
 /// <param name="connectionString"></param>
 /// <param name="createTable"></param>
 /// <returns></returns>
 public static EventStoreConfiguration WithSQLiteEventStore(this EventStoreConfiguration cfg, string connectionString, bool createTable)
 {
     if (createTable)
     SQLiteAppendOnlyStore.CreateTableIfNotExists(connectionString);
       IAppendOnlyStore aStore = new SQLiteAppendOnlyStore(connectionString);
       Xyperico.Agres.EventStore.EventStoreConfigurationExtensions.SetAppendOnlyStore(cfg, aStore);
       return cfg;
 }
Example #2
0
        public static void Setup(IObjectContainer container)
        {
            SQLiteAppendOnlyStore.CreateTableIfNotExists(SqlConnectionString);

            container.AddComponent <IUserNameValidator, FilebasedUserNameValidator>();

            Chimera.Authentication.Core.ApplicationStarter.Initialize();
        }
Example #3
0
 protected override void SetUp()
 {
     base.SetUp();
     try { SQLiteAppendOnlyStore.DropTable(SqlConnectionString); } catch { }
     SQLiteAppendOnlyStore.CreateTable(SqlConnectionString);
 }
Example #4
0
 static IAppendOnlyStore CreateSQLiteStore()
 {
     SQLiteAppendOnlyStore.DropTableIfExists(SQLiteConnectionString);
     SQLiteAppendOnlyStore.CreateTable(SQLiteConnectionString);
     return(new SQLiteAppendOnlyStore(SQLiteConnectionString, false));
 }