i have the following classes and mappings abstract class BaseClass { public virtual int Keypart1 { get; set; }
I have 3 table in a sample. i am going to join 2 table but i have problem the following is my code : <?xml version=\"1.0\"?>
I have a mapping issue with the table-per-class hierarchy in Fluent/NHibernate.When retrieving the records from the database, I keep getting an error (the Wrong type exception)
I need to store my enums in the database as varchar instead of nvarchar, so I am using the \"AnsiString\" mapping as follows:
I am trying to create my own foreign key convention that will name the FK in \"FK_SourceTable_TargetTable\" format.
I wan开发者_如何学Got to do this for all my Types Of AuditedEntity, but as we\'ve told FH to ignore base abstracts, the code isnt getting hit. i dont want to do this for all my entities and then have
I\'m looking for an example of how I would/should use the SqlUpdate, SqlDelete, and SqlInsert parts of Fluent NHibernate in my mappings.
I am dealing with a legacy database, and we have a field which doesn\'t make sense anymore, but I would rather not change the DB schema.
I am using Nhibernate 3.2, along with a build of FluentNhibernate compatible with NH 3.2 and I have come to map a legacy part of my s开发者_Go百科ystem. I believe it is possible to do what I require,
I made conversion from EF4 to nHibernate and now have little problem with inheritence. My entities and mappings: