automapping
Getting "unable to cast PersistentGenericSet to ISet" error
I get this error: Unable to cast object of type \'NHibernate.Collection.Generic.PersistentGenericSet1[IocWinFormTestEntities.People]\'[详细]
2023-03-11 13:41 分类:问答Fluent NHibernate automap base class overrides
I have the following base class. public abstract class BaseEntity { public virtual long Id { get; set; }[详细]
2023-03-10 03:49 分类:问答FluentNHibernate: How to translate HasMany(x => x.Addresses).KeyColumn("PersonId") into automapping
Say I have these models: public class Person { public virtual int Id { get; private set; } public virtual ICollection<Address> Addresses { get; private set; }[详细]
2023-03-07 12:07 分类:问答Fluent NHibernate Automapping with abstract base class
Given the classes below: public class Address : Place { public virtual string Street { get; set; } public virtual int Number{ get; set; }[详细]
2023-03-04 10:22 分类:问答Fluent nhibernate Automapping Domain Difficulties
Trying to get my head round automapping. I am having a problem when trying to automap my domain and generate the database. Im sure its something simple im doing wrong.[详细]
2023-02-27 03:54 分类:问答Using Fluent NHiberanate how do I turn off the mapping of a non persistent property
All my persistent objects have a property which should not be persisted. At this moment i generate my automapping like this:[详细]
2023-02-25 02:04 分类:问答Fluent Auto Mappings with abstract base also part of model
Ok, firstly I hope this makes sense. I\'m trying to use fluent auto mappings for my app based around the following idea.[详细]
2023-02-23 07:22 分类:问答ValueInjecter - recursive mapping
I\'m pretty new to auto-mapping, and even newer to ValueInjecter.I\'m sorry if this is an easy question, but I can\'t seem to find the answer anywhere.[详细]
2023-02-22 12:04 分类:问答Fluent Nhibernate Automap one to many orphaned records
My problem is that when I remove an object from the one to many relationship the child records get orphaned as opposed to deleted. I\'m not sure if it the way I have set up my domain model or I\'m not[详细]
2023-02-22 07:05 分类:问答Fluent NHibernate not auto-mapping one-to-many property in base class
Let\'s say I have an abstract base class defined as follows: public abstract class CompanyBase : EntityBase<CompanyBase>[详细]
2023-02-20 22:35 分类:问答