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逻辑错误或丢失的数据库接近 “(”:语法错误
任何想法