tagged [fluent-nhibernate]

Fluent NHibernate entity HasMany collections of different subclass types

Fluent NHibernate entity HasMany collections of different subclass types So everything is working well with the basic discriminator mapping. I can interact directly with entities A and B without any p...

nhibernate, could not resolve property

nhibernate, could not resolve property I have a problem with NHibenate. When I run queryover, I get an error "could not resolve property: User.Name of: MegaOnlineChat.Core.Entities.Message".What am I ...

17 Oct at 08:52

ServiceStack & NHibernate Integration creating two sessions?

ServiceStack & NHibernate Integration creating two sessions? I'm attempting to follow the blog post here: [http://www.philliphaydon.com/2012/06/using-nhibernate-with-servicestack/](http://www.philliph...

12 Jan at 17:30

Fluent NHibernate Many-to-Many

Fluent NHibernate Many-to-Many I am using Fluent NHibernate and having some issues getting a many to many relationship setup with one of my classes. It's probably a stupid mistake but I've been stuck ...

Fluent NHibernate FluentMappings.AddFromAssemblyOf<> Issue

Fluent NHibernate FluentMappings.AddFromAssemblyOf Issue A coworker and I were recently doing the backend for a small application using Fluent NHibernate. We wrote our entities, mapping files, persist...

27 May at 21:43

Optimizing nhibernate session factory, startup time of webApp really slow

Optimizing nhibernate session factory, startup time of webApp really slow I have implement testing app. which uses fluent nhibernate mapping to db object inside mssql db. Since I want to learn fine tu...

How to alter column using nhibernate SchemaUpdate functionality

How to alter column using nhibernate SchemaUpdate functionality I have entity model which I want to be reflected to database each time I run application but without clearing the data thus I'm using `S...

Ensure NHibernate SessionFactory is only created once

Ensure NHibernate SessionFactory is only created once I have written an NHibernateSessionFactory class which holds a static Nhibernate ISessionFactory. This is used to make sure we only have one sessi...

Inserts of stateless session of NHibernate are slow

Inserts of stateless session of NHibernate are slow It's been a couple of days that I'm working on improving NHibernate Insert performance. I'd read in many posts (such as [this one](http://ayende.co...

NHibernate IQueryable collection as property of root

NHibernate IQueryable collection as property of root I have a root object that has a property that is a collection. For example: What I want to accomplish is to return a collection that is I

nhibernate "cascade="all-delete-orphan" error

nhibernate "cascade="all-delete-orphan" error i have 3 tables in my database: 1. Projects (id, name) 2. Tags (id, name) 3. ProjectsTagss (id, projectId, tagid) As you can see the ProjectsTags table is...

How to activate the second level cache on a lazy loaded property with own user type?

How to activate the second level cache on a lazy loaded property with own user type? : In my application, I store raw WAV data in the database as `byte[]`. In my domain model there is a class `PcmAudi...

Servicestack UserAuth Persistence using Nhibernate (using ServiceStack.Authentication.NHibernate)

Servicestack UserAuth Persistence using Nhibernate (using ServiceStack.Authentication.NHibernate) I'm trying to use the ServiceStack IUserAuthRepository implementation for Nhibernate. I have registere...

Antlr exception with message "plan b" when walking IQueryable of NHibernate entities

Antlr exception with message "plan b" when walking IQueryable of NHibernate entities I've got quite weird exception when trying to materialize the `IQueryable` I got form `NHibernate.Linq`. The except...

12 Aug at 10:48

Servicestack NHibernate Auth Repo No CurrentSessionContext configured

Servicestack NHibernate Auth Repo No CurrentSessionContext configured I have the following configuration: And then elsewhere I have: ``` var authRepo = new NHibernateUserAuthRepository (_container.R

NHibernate Mapping: Insert Children after Parent has ID from INSERT Trigger without UPDATE of a child' ParentId

NHibernate Mapping: Insert Children after Parent has ID from INSERT Trigger without UPDATE of a child' ParentId Let me please explain our situation first. We are working on a brown field application. ...

Fluent NHibernate - Dialect does not support DbType.Xml (SQLite)

Fluent NHibernate - Dialect does not support DbType.Xml (SQLite) I have a custom NHibernate XMLtype (Converts POCO to XML on the fly) so i can save objects in the DB. This works with SQL Server 2014 w...

Inserting a collection of entities in bulk using Fluent NHibernate

Inserting a collection of entities in bulk using Fluent NHibernate I'm trying to insert a large collection of objects into a table using fluent NHibernate, using a call to save or update passing each ...

Fluent NHibernate "Could not resolve property"

Fluent NHibernate "Could not resolve property" I have read a lot of the questions about that same error but none since to match my exact problem. I'm trying to access the property of an object, itself...

Fluent NHibernate cascade delete not working

Fluent NHibernate cascade delete not working I've got a simple phone directory app using Fluent NHibernate 1.1. In the app, a "Person" object has many "PhoneNumber" objects. I'm trying to delete a Per...

23 May at 12:2

ServiceStack / FluentNHibernate / MySQL - Same connection used by two concurrent requests

ServiceStack / FluentNHibernate / MySQL - Same connection used by two concurrent requests We seem to have come up on a weird issue, where two concurrent requests to our service are actually using the ...

Programming to interfaces while mapping with Fluent NHibernate

Programming to interfaces while mapping with Fluent NHibernate I have been whipped into submission and have started learning Fluent NHibernate (no previous NHibernate experience). In my project, I am ...

Fluent-NHibernate many-to-many cascade does not populate the link table

Fluent-NHibernate many-to-many cascade does not populate the link table OK, no matter how I define these mappings, my many-to-many mapping does not want to work with cascade insert. I have tried vario...

NHibernate.Spatial and Sql 2008 Geography type - How to configure

NHibernate.Spatial and Sql 2008 Geography type - How to configure I am trying to use Nhibernate with the Sql 2008 Geography type and am having difficulty. I am using Fluent Nhibernate to configure whi...

MS Entity Framework VS NHibernate and its derived contribs (FluentNHibernate, Linq for NHibernate)

MS Entity Framework VS NHibernate and its derived contribs (FluentNHibernate, Linq for NHibernate) I just read this [article](http://visualstudiomagazine.com/Articles/2009/12/01/Entity-Sequel.aspx?Pag...