Top "Nhibernate-mapping" questions

XML mappings for the .NET framework object-relational mapper (ORM) NHibernate as created with .hbm.

Which .NET data type is best for mapping the NUMBER Oracle data type in NHibernate?

I've seen some examples in which decimal is used in NHibernate projects for mapping to whole number columns in Oracle. …

c# oracle nhibernate oracle10g nhibernate-mapping
NHibernate - not-null property reference a null or transient value

I'm getting this exception (Full exception at the bottom): NHibernate.PropertyValueException was unhandled by user code Message="not-null property references …

c# nhibernate exception fluent-nhibernate nhibernate-mapping
Inverse Attribute in NHibernate

How do I use the Inverse Attribute? If I am not mistaken, for one to many relationships the inverse attribute …

nhibernate nhibernate-mapping
Unable to cast object of type NHibernate.Collection.Generic.PersistentGenericBag to List

I have a class called ReportRequest as: public class ReportRequest { Int32 templateId; List<Int32> entityIds; public virtual Int32? …

nhibernate fluent-nhibernate nhibernate-mapping
nHibernate, No row with the given identifier exists

I have a mapping along the lines of this. <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="Model.Entities" schema="etl" assembly="…

c# nhibernate nhibernate-mapping
Composite Key/Id Mapping with NHibernate

I have the following tables in my database: Announcements: - AnnouncementID (PK) - Title AnouncementsRead (composite PK on AnnouncementID and …

nhibernate fluent-nhibernate nhibernate-mapping composite-key composite-id
Fluent NHibernate Many to one mapping

I am new to Hibernate world. It may be a silly question, but I am not able to solve it. …

nhibernate nhibernate-mapping fluent
Fluent NHibernate: How to create one-to-many bidirectional mapping?

Basic question: How to I create a bidirectional one-to-many map in Fluent NHibernate? Details: I have a parent object with …

nhibernate fluent-nhibernate nhibernate-mapping
How to map a VARCHAR(MAX) column in NHibernate hbm.xml mapping files

We have a SQL Server table with varchar and nvarchar max columns like this: CREATE TABLE [dbo].[MyTable]( : [MyBigUnicodeColumn] [nvarchar](…

nhibernate nhibernate-mapping
NHibernate One-To-One Mapping

I'm new to NHibernate so have had limited exposure to mappings etc so far, and I've just hit a scenario …

c# asp.net nhibernate nhibernate-mapping