NHibernate is a mature, open source object-relational mapper (ORM) for the .NET framework.

learn more… | top users | synonyms

0
votes
1answer
9 views

fluent nhibernate copy a full entity

how can I best copy an entity instance in fluent nhibernate 3.3.1; I read an object out of the database, I got an object, now I change some values of this object. This object with little changes want ...
0
votes
0answers
18 views

LINQ group by date - include empty days WITHOUT using join

Using C#, NHibernate, NHibernate to LINQ. Using NHibernate to LINQ, I do not have the JOIN functionality. I can not use QueryOver either. I have a LINQ query that counts the amount of Leads and ...
0
votes
1answer
12 views

CreateCriteria sorting on aggregate function sum

SELECT [ProductErpIdentifier], [PriceValue], [ManufacturerProductIdentifier], SUM([QuantityOrdered]) as [QuantityOrdered] FROM [eCommerceDev].[dbo].[OrderItem] GROUP BY ...
1
vote
0answers
24 views

Container not disposing transient components

I'm not sure whether this is more of an NServiceBus issue, a Windsor issue, or just my own stupidity problem - but I'm experiencing a memory leak which seems to point to lots of transient components ...
0
votes
1answer
12 views

Fluent NHibernate with MySQL with Mono and ASP MVC 3

I'm attempting to configure Fluent NHibernate with Automapping for MySQL and I've run into a problem. I've googled quite a bit and tried many different things, but haven't found a solution yet. ...
-1
votes
0answers
18 views

convert SQL to NHibernate 3 syntax query [closed]

As I am trying to learn NHibernate 3. I am finding it a bit challenging to write complex queries. I would like to convert the below SQL to its equivalent QueryOver<>, Linq or some other syntax ...
0
votes
0answers
22 views

FluentNHibernate - Mapping a class to multiple tables

Sorry for a lengthy question. But it is worth giving all the details so please bear with me through to the end. I'm working against a legacy database over which I do not have much control. I want to ...
0
votes
0answers
11 views

Querying for various entities with nHibernate 2.1.2, and I'm not sure this is the correct behavior

I'm executing the following HQL: select entity from @entityType entity join entity.StationPointBegin spbegin where spbegin.Line = ? and entity.CurrentIndicator= 'Y' order by ...
2
votes
0answers
18 views

NHibernate query cache not working when using join

When this gets called two times, the second invocation doesn't re-run the query on the database, the query caching works. var query = from p in session.Query<Product>() where ...
0
votes
1answer
27 views

Given a DateTime, how to Call .ToUniversalTime when using LINQ to NHibernate?

I have a method which returns all the events based on an EventTypeID: public IList<Event> FindAll(int eventTypeId, DateTime? modifiedSince) { IQueryable<Event> query ...
0
votes
2answers
39 views

Long commit results in slow performance of nHibernate

We're using nHibernate in an ASP web application with the session-per-request pattern. Some actions which the user is able to do, result in several hundreds of INSERT and UPDATE statements which takes ...
0
votes
1answer
23 views

Nhibernate Fetch/FetchMany/ThenFetch duplicate results

I'm quering my database. The structure looks like below Country 1..M CountryLocales 1 .. M Cities 1..M CityLocales So, each Country has multiple locales, each City has multiple locales and a ...
1
vote
1answer
13 views

Specifying the name of a foreign key column

public class TransactionIdentityModelMapping : ClassMap<TransactionIdentityModel> { public TransactionIdentityModelMapping() { Table("TransactionIdentities"); Id(x => ...
0
votes
0answers
17 views

NHibernate? Error when accesing my release build

I've finished (?) a development on a website that wasn't mine. It uses NHibernate which I'm not famillir with. My developpement seems to work fine on debug mode, but when I publish my release build, ...
-1
votes
1answer
24 views

no persister for System.Generic.List fluent nhibernate

I will insert a list of objects in my database with the following method: public static void InsertObjekts(List<Objekt> objekts) { var session = SessionManager.CurrentSession; using ...

1 2 3 4 5 935
15 30 50 per page