0
votes
0answers
2 views

How to set schema-action=“none” for child collection mapped as <composite-element>

Setting schema-action="none" works fine on a <class>. NHibernate's SchemaExporter still attempts to issue DDL, though, for child collections mapped as <composite-element>. Is this a bug ...
0
votes
1answer
10 views

How do I map a subclass of a parent class that has no table

I have two tables in my database that home data for a superclass and a subclass. However, in my application, I have an intermediate class between the two that gets its data loaded from bottom ...
0
votes
0answers
9 views

Map foreign key in Fluent NHibernate without object property

My question is, is there a possible Fluent NHibernate mapping for Parent and Child objects that does not require the Child object to have a Parent object property? I haven't figured out how to map the ...
0
votes
1answer
22 views

How do I map my database to my model?

I'm using NHibernate 3.3.2.4 (Not Fluent)... I'm trying to map a database model to an application model and I'm coming unstuck. I have the following database structure (simplified for brevity): ...
0
votes
0answers
13 views

nHibernate 3 way mapping

I'm trying to map some tables in the database to a nhibernate .hbm.xml file so far my mapping looks like this <?xml version="1.0"?> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" ...
0
votes
0answers
14 views

NHibernate deletes and recreates one-to-many associations even when I use a list

OK, I've spent a long time researching this with NHibernate 3.3.1.4. The problem I have it that I have a list, like below: <class xmlns="urn:nhibernate-mapping-2.2" ...
0
votes
0answers
14 views

Invalid mapping when lazy load Abstract

Background: NHibernate 1.2 C# 3.5 Class MultiS has a list of InterfaceOfS. In the mapping of MultiS, it's a bag of AbstractOfS since we can't define mapping for interface. An error is thrown when ...
0
votes
0answers
11 views

duplication relationship when create table with nhibernate

I have created a project with Sqlserver 2012 and fluent nhibernate. When I am mapping classes, tables creating according to classes and everything work well. but when I want to create a tables ...
-2
votes
0answers
31 views

How to map collections in proper way

What is the best way for mapping collection of objects in NHibernate? Now I am using bags, but maybe another approach can be more efficient?
1
vote
2answers
48 views

NHibernate.MappingException Could not determine type for: Entity

i have a asp.net aplication and add a library with my domains objects and xml files. the trace is: Message=Could not determine type for: VaLibrary.Core.Domain.VAEmpresa, VaLibrary, ...
0
votes
0answers
20 views

NHibernate 3.3 Delete the database columns, removing mapped properties, updating my schedule

I worked with my classes mapped in this way: public class MateriaMap : ClassMapping<Materia> { public MateriaMap() { Id(x => x.id, map => ...
0
votes
2answers
26 views

Stopping child entity to update in nhibernate

I am running into problem as my maps are updating child entity which is actually a view in database here is part of parent map HasManyToMany(x => x.Child).Cascade.None() ...
1
vote
1answer
27 views

How to map an enum in a one-to-many relationship with NHibernate?

I have the two separate tables. [users] [ roles ] +-----+ +-------+ | id | |user_id| +-----+ +-------+ | value | <- [Represented by the enum] +-------+ And the ...
1
vote
0answers
20 views

Classic nHibernate mapping ASP.NET membership

I'm fairly new to nHibernate, and having trouble with a one-to-one relationship. I am using the aspnet membership schema, and additionally have my own user table for extra user info. They are related ...
0
votes
1answer
16 views

Nhibernate: one-to-one to one-to-one

I have the following UML structure: I'm trying to map it similar to this: <class name="Parent" table="ParentTable"> <id name="Id"> <generator class="guid.comb" /> ...

1 2 3 4 5 104
15 30 50 per page