tagged [nhibernate]

nHibernate, No row with the given identifier exists

nHibernate, No row with the given identifier exists I have a mapping along the lines of this. ```

30 Mar at 03:37

NHibernate Second Level Cache With NHibernate Linq Provider 1.0

NHibernate Second Level Cache With NHibernate Linq Provider 1.0 How to enable NHibernate Second-Level Cache with NHibernate Linq Provider 1.0 ? Second-Level Cache seems to work only with ICriteria usa...

3 Sep at 18:51

Can .NET 4 ISet<> HashSet<> replace NHibernate Iesi.Collections ISet , HashSet?

Can .NET 4 ISet HashSet replace NHibernate Iesi.Collections ISet , HashSet? Can .NET 4 ISet HashSet replace NHibernate Iesi.Collections ISet , HashSet ? I am using Castle proxy, and NHibernate 3.0 .

Executing Sql statements with Fluent NHibernate

Executing Sql statements with Fluent NHibernate Basically I want to be able to do this: `session.ExecuteSql("...");` I don't need it to map to any entities or return any values. Any suggestions?

10 Mar at 23:28

Can NHibernate create tables from existing classes automatically?

Can NHibernate create tables from existing classes automatically? I'm very new at this, but I need to create new tables from existing classes without creating them by hand. Can this be done using a to...

2 May at 23:7

Does Fluent-NHibernate support mapping to procedures?

Does Fluent-NHibernate support mapping to procedures? I've been wondering if it's possible to have Fluent-NHibernate communicate with stored procedures that already exist and assign mapping from the r...

fluent nhibernate - many-to-many relationship mapping on same entity

fluent nhibernate - many-to-many relationship mapping on same entity I am having a problem trying to map out a many-to-many relationship , where both sides of the relationship reference the same entit...

Fluent NHibernate - Create database schema only if not existing

Fluent NHibernate - Create database schema only if not existing I have an application where I use Fluent Nhibernate to create my database. This far I've been recreating the database schema each time. ...

NHibernate - KeyNotFoundException: The given key was not present in the dictionary

NHibernate - KeyNotFoundException: The given key was not present in the dictionary I have the following block of code which should ultimately update a record which errors on Session.Evict(entity) with...

26 Oct at 20:26

How to do a NotEqual to in NHibernate

How to do a NotEqual to in NHibernate I have an enumeration of type int in my entity, UserStatus. I want to get all users where the UserStatus Cancelled. So:

25 Apr at 21:49

How to implement correctly IUserType?

How to implement correctly IUserType? I need to create a [custom type](https://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/mapping.html#mapping-types-custom) for [NHibernate](https://w...

simple QueryOver : Unrecognised method call

simple QueryOver : Unrecognised method call I have a simple QueryOver Number field type is int. This query has a runtime error by this message: > Unrecognised method call: System.Int32:Boolean Equals(...

16 Aug at 04:57

NHibernate or LINQ to SQL

NHibernate or LINQ to SQL If starting a new project what would you use for your ORM NHibernate or LINQ and why. What are the pros and cons of each. edit: LINQ to SQL not just LINQ (thanks @Jon Limjap)

10 Sep at 05:7

Difference between deferred execution and Lazy evaluation in C#

Difference between deferred execution and Lazy evaluation in C# Could you please let me know what is the exact deference between deferred execution and Lazy evaluation in C#?These two are used synonym...

27 Mar at 20:21

Help with QueryOver and WhereExists

Help with QueryOver and WhereExists I have a problem. I have Persons and Cats. Each Person has some Cats (there is a foreign key in Cats that points to the primary key in Persons). Each Cat has an Age...

How to do a case-insensitive string where in NHibernate Linq query?

How to do a case-insensitive string where in NHibernate Linq query? How to do a case-insensitive where in NHibernate Linq query? e.g.

23 Mar at 03:5

Search text contains with QueryOver

Search text contains with QueryOver I'm trying to do this : but I get this error : Do you have an idea ?

22 Jul at 15:49

How to delete multiple db entities with Nhibernate?

How to delete multiple db entities with Nhibernate? What is the best practice for this problem? Is there any batching features built-in? Sample code: Thanks in advance.

Is there any Fluent NHibernate book?

Is there any Fluent NHibernate book? Taking into consideration that Fluent NHibernate has been available for some time I thought that there would be a book available already so i search in amazon and ...

12 Oct at 09:26

Can someone better explain what 'Projections' are in nHibernate?

Can someone better explain what 'Projections' are in nHibernate? As a new user of nHibernate and its utility library, fluent nhibernate, I am trying to learn enough to be dangerous with a good databas...

23 May at 12:16

NHibernate Transactions on Reads

NHibernate Transactions on Reads I have read the documentation and explanation on why it is highly recommended to use transactions on read operations in NH. However, I still haven't totally "bought" i...

1 Nov at 15:42

NHibernate vs Entity Framework 6 performance for big number of users

NHibernate vs Entity Framework 6 performance for big number of users I'm building big web application that should communicate with the database very often. I'm wondering what library should I use for ...

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

NHibernate ISet Vs IList

NHibernate ISet Vs IList In most of the NHiberate examples they use an ISET over an IList. I am aware of the basic differences between the two . However, I am unsure why they use an ISet over an IList...

19 Mar at 15:56