1
public void Initialize()
{
sessionFactory = CreateSessionFactory();
}
private ISessionFactory CreateSessionFactory()
{
return Fluently.Configure()
.Database(SQLiteConfiguration.Standard.InMemory().ShowSql())
.Mappings(m => m.FluentMappings.AddFromAssemblyOf<TestMetaData>())
.ExposeConfiguration(cfg => configuration = cfg)
.BuildSessionFactory();
}
public ISession OpenSession()
{
ISession session = sessionFactory.OpenSession();
var export = new SchemaExport(configuration);
export.Execute(true, true, false, session.Connection, null);
return session;
}
這部分產生錯誤System.Data.SQLite.SQLiteException:SQL邏輯錯誤或丟失數據庫近「(」:語法錯誤C#流利SQLLite InMemory System.Data.SQLite.SQLiteException:SQL邏輯錯誤或丟失的數據庫接近 「(」:語法錯誤
任何想法