nhibernate-mapping Questions
1
Solved
I have to use an HQL query in my project and I've an error : "entity is not mapped".
When I read nHibernate HQL - entity is not mapped or nHibernate HQL - entity is not mapped (or other web site) ...
Madison asked 2/2, 2012 at 15:45
2
The business logic inside a process is:
begin transaction
add an item to a collection
perform a find("somethingA")
delete that item depending on the previous step.
commit transaction
Im using c...
Offer asked 11/12, 2011 at 2:12
6
Solved
Do mapping attributes offer the same versatility as nhib hbm's do? Can you use them together with FNH to handle things FNH doesn't yet do as well as hbm's can?
Cheers,
Berryl
By mapping attribute...
Retrusion asked 4/5, 2010 at 23:49
2
Solved
I'm interested in moving some NHibernate configurations/mappings into the code to help with some maintenance issues. Can anyone provide any advice/pros/cons/comparisons of Fluent NHibernate vs. NHi...
Dayak asked 25/3, 2009 at 3:40
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 ...
Matejka asked 28/11, 2011 at 20:30
1
Solved
I am new to Fluent nHibernate and would like to know, if I have two classes Profile and Email mapped one-to-many as following... I want to define a nHibernate mapping fluently so when Profile is de...
Andros asked 1/12, 2011 at 17:48
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...
Button asked 23/11, 2011 at 9:39
1
Solved
Given a Team -> Athlete relationship and querying all athletes. What
am I misunderstanding about fetch="Join"? Should this mapping cause
the Team to be loaded via a join? When iterating the athlete...
Opus asked 22/11, 2011 at 19:13
1
Solved
I have a test database design like this:
The following is the pseudo-code:
//BhillHeader
public class BillHeader
{
public BillHeader()
{
BillDetails = new List<BillDetail>();
}
public...
Schnitzel asked 9/11, 2011 at 8:21
2
Solved
I'm hoping that someone can help me with this issue. I've been racking
my brain and my project is due very soon. Thank You in advance.
I'm receiving an index out of range exception when inserting ...
Cockeyed asked 14/12, 2009 at 17:16
1
Solved
I have a project by NHibernate implementation and using Lazy Loading.
I have two class in this project : Person and Family.
Relation between Those two is aggregation, is mean a Person has a list of...
Tremann asked 31/10, 2011 at 13:48
3
Solved
How do I use the Inverse Attribute? If I am not mistaken, for one to many relationships the inverse attribute must be set to true. For many-to-many relationships, one of the entity class inverse at...
Katz asked 3/4, 2009 at 11:58
3
I am trying to use lazy loading for a property of one of my entities
The property mapping is something like this:
<property name="Foobar" type="AnsiString" column="FOOBAR" lazy="true"/>
H...
Kos asked 22/6, 2011 at 2:58
2
Solved
The class:
public class SOPProcess : ISOPProcess
{
public virtual Guid Id { get; set; }
public virtual SOP SOP { get; set; }
public virtual ProcessType Type { get; set; }
public virtual SO...
Johnsonian asked 7/9, 2011 at 19:25
2
Solved
I have been trying to do a very simple auditing scenario following Ayende's blog which seem to be the resource everyone is refering to when it comes to IPreUpdateEventListener and IPreInsertEventLi...
Savina asked 23/2, 2011 at 6:57
1
Solved
Using NHibernate 3.2 mapping by code (not fluent-nhibernate), I'm trying to map an Enum field to a string column instead of the default int representation. I can't get the right syntax.
For exampl...
Fluoridation asked 29/8, 2011 at 17:42
5
Solved
While this is a subjective question, as a new NHibernate user, I'm curious as to why one would choose Fluent vs traditional XML mapping.
From my standpoint, when I first worked with NHibernate, I ...
Amenity asked 22/1, 2010 at 12:51
2
Solved
How to create a Multi-Column Index and/or Unique Constraint using NHibernate Mapping or Fluent NHibernate.
Antitragus asked 7/5, 2009 at 13:10
2
Solved
I've been been experiencing a weird behaviour (at least to me) with ISession.Refresh().
I've got an entity with a lazy-loaded collection of children, and a read-only property that hits this collec...
Mastrianni asked 2/8, 2011 at 14:50
1
Solved
I'm trying to get NHibernate to use the many side of a collection to manage a bidirectional association to model a zero-to-one relationship.
Parent Class and Map:
public class Parent
{
private I...
Denominative asked 31/5, 2011 at 0:17
1
Solved
I'm trying to leverage NH to map to a data model that is a loose interpretation of the EAV/CR data model.
I have most of it working but am struggling with mapping the Entity.Attributes collection....
Necaise asked 6/5, 2010 at 21:14
1
Solved
I am trying to use join to pull in a single property from another table, which doesn't have a mapping. My problem is that when I create a new instance of my mapped entity and save it I get an error...
Enthymeme asked 26/7, 2011 at 21:39
3
I have a sql table with a string column that could contain null, empty string or a double value.
I want to map this column to a C# property that is a double, defaulting to zero when the column is n...
Sprag asked 7/7, 2011 at 16:40
2
Solved
How can I invoke following method while I have not TRootEntity, but have just its TYPE:
public void Class<TRootEntity>(Action<IClassMapper<TRootEntity>> customizeAction) where TR...
Chivalry asked 3/7, 2011 at 11:48
3
Solved
What is the reason of this error? My class is Course and it has notes. Mapping is as below. Any idea?
<bag name="Notes" table="NOTE" cascade="all">
<key column="COURSEID"/>
<one-t...
Weisbrodt asked 23/11, 2009 at 15:12
© 2022 - 2024 — McMap. All rights reserved.