fluent-nhibernate
NHibernate map to inconsistent Data
I am using NHibernate to map a DataModel. Unfotunatley the DataBase contains some inconsistent data due to lack of keys/constraints. Currently I am stuck with an m:n mapping where some keys on the map[详细]
2023-04-07 16:17 分类:问答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 one-to-many with intervening join table?
I\'m having trouble getting the Fluent Nhibernate Automapper to create what I want.I have two entities, with a one-to-many relationship between them.[详细]
2023-04-07 12:52 分类:问答How to pass a parameter in my method to return using a stateless session? minimize code duplication
I want to pass a parameter in my method call, if set (its a boolean), then return a Stateless session.[详细]
2023-04-07 11:29 分类:问答Fluent NHibernate Automappings generating 2 foreign keys for 1 relationship
I have this setup (condensed for brevity) Class Employee virtual IList<ChecklistItem> HasInitialed { get; private set; }[详细]
2023-04-07 06:38 分类:问答Fluent nHibernate QueryOver SQL 'CASE' equivalent
Basically what I want to do is to write this piece of SQL: SELECT CASE WHEN t.ty开发者_StackOverflow社区pe = \'a\' THEN[详细]
2023-04-07 06:17 分类:问答Nhibernate Bidirectional One-to-one (not HasOne)
I\'m trying to establish a One-to-One relationship (Two-sided References relationship) between two classes. Both Properties should not be nullable. The problem is whe开发者_如何转开发n you try to save[详细]
2023-04-06 14:26 分类:问答How can I map a UInt64 field to a decimal(20, 0) column using Fluent nHibernate?
I\'m using MS SQL Server 2008R2 Fluent nHibernate 1.3 nHibernate 3.2 I have a UInt64 field in my domain that potentially takes up the entire UInt64 range. Since MS-SQL doesn\'t support unsigned in[详细]
2023-04-06 10:53 分类:问答Could not create the driver from NHibernate.Driver.SQLite20Driver, NHibernate, Version=3.1.0.4000
I have a tests project that I am trying to test my nhibernate layer with using sql lite in-memory database.[详细]
2023-04-06 02:21 分类:问答How to change FK Name in fluent nhibernate
I am wondering how do I change the name of a FK with fluent nhibernate. Right now it makes all the foreign keys like (product_id,student_id) what is find but there is one table I wan开发者_JS百科t it[详细]
2023-04-05 17:49 分类:问答