Beispiel #1
0
        static Database()
        {
            Instance = AutoDatabase<PersistedObject>.Create(
                PersistenceConfigurer.SqlExpress(Environment.MachineName, "Bibliopedia"),
                //PersistenceConfigurer.FileBasedDb("Test.sdf"),
             true);

            Session = Instance.SessionFactory.OpenSession();
        }
 public void FixtureSetup()
 {
     Bot = new BiblioBot();
     bool buildSchema = !File.Exists("d:/JSTOR.sdf");
     Database =
         AutoDatabase<JstorDoi>.Create(
         PersistenceConfigurer.PersistentFileBasedDb("d:/JSTOR"), buildSchema);
     //PersistenceConfigurer.SqlExpress("localhost", "JSTOR"), true);
 }
Beispiel #3
0
 public void TestFixtureSetUp()
 {
     Database =
         JstorDatabase.Create(
         PersistenceConfigurer.FileBasedTempDb("d:/JSTOR"), true);
             //PersistenceConfigurer.SqlExpress("localhost", "JSTOR"), true);
 }