Я пытаюсь настроить NHibernate
пакет id="NHibernate" version="4.0.0.4000" targetFramework="net451"
с плавным пакетом id="FluentNHibernate" version="2.0.1.0" targetFramework="net451"
. Следующий код:Не найдено: 'NHibernate.NHibernateUtil.String'
var sessionFactory = Fluently.Configure()
.Database(SQLiteConfiguration.Standard.InMemory)
.Mappings(m =>
{
m.FluentMappings
.AddFromAssemblyOf<ExampleSagaMap>();
)
.ExposeConfiguration(cfg =>
{
chemaExport = new SchemaExport(cfg);
})
.BuildSessionFactory();
Карта Код:
public ExampleSagaMap()
{
Not.LazyLoad();
Id(x => x.CorrelationId).GeneratedBy.Assigned();
Map(x => x.CurrentState)
.Access.ReadOnlyPropertyThroughCamelCaseField(Prefix.Underscore)
.CustomType<StateMachineUserType>();
Map(x => x.MessagesReceived);
Map(x => x.MessagesSent);
}
Ошибка:
An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail.
Inner error: {"Field not found: 'NHibernate.NHibernateUtil.String'."}
Может кто-то пожалуйста, помогите.