fluent-nhibernate-mapping
composite Key and inheritance
i have the following classes and mappings abstract class BaseClass { public virtual int Keypart1 { get; set; }[详细]
2023-04-12 21:15 分类:问答joining 2 table with queryover
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\"?>[详细]
2023-04-12 20:10 分类:问答NHibernate Table Per Class loading - wrong type
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)[详细]
2023-04-11 18:58 分类:问答"PropertyAccessException: Invalid Cast" when trying to retrieve an enum property stored as an AnsiString
I need to store my enums in the database as varchar instead of nvarchar, so I am using the \"AnsiString\" mapping as follows:[详细]
2023-04-09 02:46 分类:问答My custom ForeignKeyConvention is resulting in two foreign keys being created instead of one
I am trying to create my own foreign key convention that will name the FK in \"FK_SourceTable_TargetTable\" format.[详细]
2023-04-07 15:35 分类:问答Fluent NHibernate how to override mappings for an abstract base class
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[详细]
2023-04-04 15:48 分类:问答Are there examples of SPROC mappings and usage with Fluent NHibernate?
I\'m looking for an example of how I would/should use the SqlUpdate, SqlDelete, and SqlInsert parts of Fluent NHibernate in my mappings.[详细]
2023-04-04 01:17 分类:问答fluent nHibernate: How to persist a property which is mapped with Formula?
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.[详细]
2023-03-30 19:43 分类:问答fluent nhibernate map hasmany using propertyref without fetch.join
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,[详细]
2023-03-30 16:34 分类:问答Lost inheritance in NHibernate
I made conversion from EF4 to nHibernate and now have little problem with inheritence. My entities and mappings:[详细]
2023-03-28 15:48 分类:问答