【发布时间】:2010-03-13 13:26:38
【问题描述】:
我在 PostgreSQL 中使用 fluentnhibernate。 Fluentnhibernate 是最后一个版本。 PosrgreSQL 版本是 8.4。 我创建 ISessionFactory 的代码:
public static ISessionFactory CreateSessionFactory()
{
string connectionString = ConfigurationManager.ConnectionStrings["PostgreConnectionString"].ConnectionString;
IPersistenceConfigurer config = PostgreSQLConfiguration.PostgreSQL82.ConnectionString(connectionString);
FluentConfiguration configuration = Fluently
.Configure()
.Database(config)
.Mappings(m =>
m.FluentMappings.Add(typeof(ResourceMap))
.Add(typeof(TaskMap))
.Add(typeof(PluginMap)));
var nhibConfig = configuration.BuildConfiguration();
SchemaMetadataUpdater.QuoteTableAndColumns(nhibConfig);
return configuration.BuildSessionFactory();
}
当我在 SchemaMetadataUpdater.QuoteTableAndColumns(nhibConfig); 行执行代码时抛出错误:System.NotSupportedException:不支持指定的方法。请帮帮我!我非常需要解决方案。 最好的问候
【问题讨论】:
标签: nhibernate postgresql fluent-nhibernate