nhibernate
How to map many-to-many lookup values without separate entity?
Let\'s say I have an entity Organization with collection of countries. I don\'t really care about countries for anything more than displaying it with organization data, potentially for filtering, that[详细]
2023-04-10 11:08 分类:问答MVC3 using nHibernate
I have an MVC3 project using nHibernate, Rhino and Castle.I finally got all of the components in place.I think.At least it runs and invokes the IWondsorContain开发者_StackOverflow社区er CreateContaine[详细]
2023-04-10 09:41 分类:问答NHibernate - Is there a way to map a formula that uses sql function and returns Table?!
I have a sql function that returns table and I need to map it to a collection i\'m trying with formula but as far as i can tell formula is good only to single returned value (right?!?)[详细]
2023-04-10 04:51 分类:问答NHibernate list saving and loading optimization advice
I have 3 classes that are mapped via NHibernate: Intersection, Vehicle and Zone. My Intersection class contains a list of Zones that belong to the Intersection.My Vehicle class contains a list of Zon[详细]
2023-04-10 01:57 分类:问答Why am I getting this nhibernate NonUniqueObjectException?
The following method queries my database, using a new session.If the query succeeds, it attaches (via \"Lock\") the result to a \"MainSession\" that is used to support lazy loading from a databound Wi[详细]
2023-04-10 01:18 分类:问答nhibernate. Bag is null after creation in same session
I have the object, which contain the list of objects. public class Product: IProduct { public virtual longId{ get; 开发者_开发百科set; }[详细]
2023-04-10 00:09 分类:问答How do I avoid Persistance and Mapping exceptions in NHibernate?
So I\'ve got the following code: try { var config = new Configuration(); config.Configure(); config.AddAssembly(typeof(Address).Assembly);[详细]
2023-04-09 17:18 分类:问答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 specify a "Like" on an integer column?
This one has me stumped and thought I would pose it to the SO community for help. A user wants to select all orders that start with a certain ID, example:[详细]
2023-04-09 11:10 分类:问答