fluent-nhibernate
How do I setup nhibernate to handle this?
I currently have this code. tableB = new TableB { TableA = tableA, }; List<TableC> tableC = locations.Select(location => new TableC[详细]
2023-04-09 13:08 分类:问答How do I map table inheritance in a legacy database?
I am finding it very difficult to map a legacy database. Here is the scenario:A contractor applies for a new license.The license is queried and displayed.The contractor modifies any information that[详细]
2023-04-09 11:53 分类:问答How to delete a referenced object using FluentNHibernate (ye olde "deleted object would be resaved by cascade")
The error I\'m getting is common, but the scenario I haven\'t found any answers that speak to my scenario:[详细]
2023-04-09 06:18 分类:问答NHibernate - LAZY LOADING PROBLEM -Initializing[]-Could not initialize proxy - no Session."}
Hi I use Fluent NHibernate and I am little confusing with Lazy Loading. I queried object in database modified object properties[详细]
2023-04-09 05:19 分类:问答Fluent NHibernate - always drop table
Hi I start learn Fluent NHibernate. I am using this tutorial http://www.d80.co.uk/post/2011/02/20/Linq-to-NHibernate-Tutorial.aspx.[详细]
2023-04-09 04:55 分类:问答"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 分类:问答How to map existing tables into a inheritance hierarchy in NHibernate?
The problem is trying to map inheritance given an existing table structure.The table is also used by legacy apps using raw sql, ie, the table can\'t delete any existing schema details, but can add mor[详细]
2023-04-08 22:41 分类:问答How do I get the connection string associated with an nHibernate GenericADOException for logging purposes?
I need to log the se开发者_开发知识库rver name from the connection string that was in use when the nHibernate GenericADOException was thrown.[详细]
2023-04-08 21:34 分类:问答Fluent Nhibernate - Joining/reference table from two classes
I have three classes: Class A { string name IList<AB> list } Class B { name } Class AB { A a B b } Class B exists separate from A.It exists in its own right, and of is part of similar list[详细]
2023-04-08 21:06 分类:问答Changing the Nhibernate entity to point to new table
I am using FLH and recently I changed the name of the table. I dont want to propagate the changes all the way across my layers. Is there a way, where I can retain the same entity name and just change[详细]
2023-04-08 06:20 分类:问答