nhibernate-mapping-by-code Questions

2

I am trying to figure out a way to map one to one relationship in nhibernate when referencing column is not a primary key column on second table. For example consider Person Table PersonId (pk...

3

We are having an intermittent problem with NHibernate where it will occasionally generate a query with a wrong column on the SQL. If we restart the application the problem ceases to happen (sometim...
Hollar asked 7/6, 2013 at 19:43

1

Solved

I am trying to map a property to an arbitrary column of another table. The docs say that the formula can be arbitrary SQL and the examples I see show similar. However, the SQL NHibernate generate...
Pinup asked 29/10, 2012 at 0:45

2

Solved

this is almost the same as this question except using NH's mapping-by-code. I really need the virtual properties because i also want to use SchemaExport to create the database for different rdbms ...

3

Solved

Took me a while to find an answer for this so thought I'd share the love. When using NHibernate's new mapping by code with SQL Server I'm unable to save an entity. When saving an entity a System...

2

Solved

I'm trying to learn NHibernate 3.2 built-in mapping by code api (NOT FluentNHibernate, nor xml). Can you help me to map a many-to-many relationship between these entities please? public class Post...

2

Solved

I'm starting a new project and I want to use NHibernate 3.2. I know that it can now do something similar to FluentNHibernate and I want to give it a try. But I am having a hard time finding docume...
Rarefy asked 14/6, 2011 at 19:5

2

Solved

NHibernate seems to have some new ways to map entities in code, which is really nice, but I can't find any information about configuring the database connections in code. It has been a while since ...

3

Solved

I have several projects using NH and FNH to generate the mappings (some Fluent some Automapped). There are still some bugs and missing features i need, but it seems that FNH could die because of ma...

1

Solved

Are there any good examples of how to use this (NHibernate.Criterion.IdentifierEqExpression) online? I couldn't find any. I'm a little confused about what you are supposed to pass into the construc...
1

© 2022 - 2024 — McMap. All rights reserved.