Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Switched back to sqlite

  • Loading branch information...
commit 108b9f8dd4fb15d43b4911a842fb9702d2aa842a 1 parent 6432eba
@paulbatum authored
Showing with 5 additions and 16 deletions.
  1. +5 −16 Console/Setup.cs
View
21 Console/Setup.cs
@@ -21,18 +21,10 @@ public class Setup
public static ISessionFactory CreateSessionFactory()
{
return Fluently.Configure()
- //.Database(
- // SQLiteConfiguration.Standard
- // .UsingFile(_dbFile)
- // .ShowSql()
- //)
- .Database(
- MsSqlConfiguration.MsSql2005
- .ConnectionString(c => c.Server(@"localhost\sqlexpress")
- .Database("TestDB")
- .TrustedConnection()
- )
- .ShowSql()
+ .Database(
+ SQLiteConfiguration.Standard
+ .UsingFile(_dbFile)
+ .ShowSql()
)
.Mappings(m =>
{
@@ -48,10 +40,7 @@ public static ISessionFactory CreateSessionFactory()
//m.FluentMappings.AddFromAssemblyOf<Program>();
//m.FluentMappings.Conventions.AddFromAssemblyOf<Program>();
//m.FluentMappings.ExportTo("mappings");
- }
-
-
- )
+ })
.ExposeConfiguration(BuildSchema)
.BuildSessionFactory();
}
Please sign in to comment.
Something went wrong with that request. Please try again.