Questions tagged [automapping]

The convention-based Auto Mapping feature of Fluent NHibernate. Not to be confused with AutoMapper, the convention-based object-to-object mapper.

251 questions
0
votes
1 answer

Issues with Fluent Nhibernate Automapping in version 1.0RC

I am new to NHibernate and am running into some issues getting the Automap functionality to work properly. Here are a couple of issues I am having. The getting started wiki for Fluent NHibernate (http://wiki.fluentnhibernate.org/Getting_started)…
Anthony Gatlin
0
votes
2 answers

Fluent NHibernate one-to-many disable foreign key constraint

I have this problem where I have a one-to-many relationship and I have to be able to delete the parent entity without it's children being deleted, nor their foreign key column set to NULL. But whenever I try deleting a parent, I get the foreign key…
0
votes
1 answer

FluentNHibernate: Id Column Name Ignored

FluentNHibernate: 1.3.0.733 NHibernate: 3.3.1.4000 I'm trying to set the column name of the Id column, but it seems to be ignored. Edit: Found solution. Property redeclaration (new-modifier) was the problem (see answer). I'm using AutoMapping…
0
votes
1 answer

Change mapping rules for view model AutoMapper

I have a model public class Product : BaseEntity { private string _name; public string Name { get { return _name; } private set{_name = value;} } public decimal Price { get; set;…
Dmytro
  • 16,668
  • 27
  • 80
  • 130
0
votes
1 answer

Override Id column's auto-increment initial value with Fluent nHibernate AutoMapping

I'm using Fluent nHibernate AutoMapping for a project and would like to change the initial Id value for one table in my schema from 1 to say 1000 (all other tables I would like to remain with the default behaviour of starting the Id at 1). I'm…
mbliss
  • 11
  • 1
0
votes
1 answer

Ignore Property in FluentNHibernate AutoMapping

I have for each Entity a BaseClass and a concrete class. For Example: ContactBase Contact Contact inherits ContactBase. In Contact, I can override properties of ContactBase. The Problem is now, that FluentNHibernate will map this property twice. How…
BennoDual
  • 5,865
  • 15
  • 67
  • 153
0
votes
1 answer

Avoid not necessary insert subclass when insert with Entity Framework

I have this objects : public class Person { public string FirstName { get; set; } public string LastName { get; set; } public Address Address { get; set; } } public class Address { public string Street { get; set; } public…
TheBoubou
  • 19,487
  • 54
  • 148
  • 236
0
votes
1 answer

Automapping DB Tables to Hibernate classes

I have my friend's EJB project that uses hibernate. I am doing my Java project with help of that project. Mine is not an EJB, it is an desktop applicaiton. I have a small hibernate class mapping issue, that is in my friend's project, when I add a…
user1479203
  • 437
  • 1
  • 8
  • 16
-1
votes
1 answer

Missing Map from x to y. Create using CreateMap

I am working on a Automated email using a CRM project and I am having issues mapping my classes,I am trying to map the details from my Invoice header to a class named Fact2. (Essentially the details of my invoice ). I made a test to investigate more…
Ken
  • 11
  • 6
-1
votes
1 answer

Automapping an array class

I have a destination object as ArrayOfStudents[] containing StudentId, AddressInfo, MarksInfo The source object is public class Details { public Student[] Student; ) The Student class contains StudentId, AddressInfo, MarksInfo I…
-1
votes
1 answer

Having different automapping "configurations"

I want to have two different mapping configurations. I need to somehow pass arguments to conventions so they can behave differently. Beside using lock and static fields how can I do this?
1 2 3
16
17