linq-to-nhibernate Questions
1
Solved
I have a simple test that runs a query 5000 times. The linq version of the query takes over 3 times the HQL and the cached Linq version is significantly slower than the cached version of HQL
HQL:
...
Orbital asked 6/6, 2011 at 18:54
1
Solved
I have the following problem
Basically I have the 2 snippets below:
var contactAssociation =
session.QueryOver<ContactAssociation>(() => contactAssociationAlias)
.Where(() =>
conta...
Zante asked 15/6, 2011 at 18:12
2
Solved
I'm trying to use linq to NHibernate (with Fluent NHibernate) but I have problems with linq query. Everytime I try to execute it I get this message :
"Method 'get_IsReadOnlyInitialized'
in typ...
Asynchronism asked 9/5, 2011 at 17:56
2
Solved
I have a problem with NHibernate, I can't seem to find any solution for.
In my project I have a simple entity (Batch), but whenever I try and run the following test, I get an exception.
I've triede...
Proglottis asked 5/4, 2011 at 8:52
2
Solved
we're starting a new project using NHibernate, and considering using NHibernate.Linq (The embedded version in 3.0, not the contrib project). I'm aware that this is a relatively recent addition. Has...
Androus asked 25/3, 2011 at 19:20
4
Solved
Does it make sense to use an OR-mapper?
I am putting this question of there on stack overflow because this is the best place I know of to find smart developers willing to give their assistance and...
Icono asked 17/3, 2011 at 18:42
1
Solved
Is this possible to use let keyword with nhibernate linq?
I wrote
var posts = from post in postsRepository.GetPosts(name)
let commentsCount = (from c in NHUnitOfWork.CurrentSession.Linq<Comme...
Ivett asked 29/10, 2010 at 21:3
1
I am having a problem with duplicate blog post coming back when i run the linq statement below.
The issue that a blog post can have the same tag more then once and that's causing the problem. I k...
Linger asked 11/3, 2010 at 21:5
1
Solved
As far as I know group by has only been added in NHibernate 3.0, but even when using version 3, I can't get group by to work.
I have tried to do the following query:
Session.Query().GroupBy(gbf...
Subteen asked 21/2, 2011 at 18:45
1
Solved
I have an application that uses a few data warehousing principles such as dimensional modeling to do reporting on a fairly simple database.
An example (simplified) entity named Call looks like thi...
Tiros asked 7/2, 2011 at 22:1
1
Solved
I have 2 objects like this
public class Child
{
public virtual int ChildId { get; set; }
}
public class Parent
{
public virtual int ParentId { get; set; }
public virtual IList<Child> Ch...
Sinew asked 19/1, 2011 at 18:25
1
Solved
When I try to compile the following code
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Linq;
using NHibernate;
namespace NewNHTest
{
class A
{ }
class...
Scorn asked 12/1, 2011 at 8:31
1
I've got this object graph:
// Lots of stuff omitted for brevity; these are all virtual properties and there
// are other properties which aren't shown on all classes.
class A {
B b;
C c;
DateT...
Conjuration asked 31/12, 2010 at 23:0
1
I'm using NH 3.0 and FNH 1.1 recompiled with NH3.
I have a user model where I want to always retrieve its profile when loading it. I use the linq provider from NH3 but can't use its Fetch method (...
Fake asked 7/12, 2010 at 18:39
2
I'm testing out nhibernate 3 CR, but fails to create the following SQL using Linq:
select *
from Users as {user}
inner join Test as test on test.UserId = user.Id
inner join Release as release o...
Amoakuh asked 25/11, 2010 at 10:46
2
How do I increase the timeout in NHibernate Linq To Sql?
Not the Connection Timeout but the ado command timeout.
using (ISession session = NHibernateHelper.OpenSession(NHibernateHelper.Databases...
Ardor asked 25/3, 2010 at 22:3
1
Solved
how can i achieve this query with Nhibernate Linq?
var l = session.CreateQuery("from Auswahl a where a.Returnkey is not null").List<Auswahl>();
i tried this but it always returns an empty ...
Calise asked 27/8, 2010 at 7:29
2
Solved
I've just downloaded the Linq provider for NHibernate and am just a little excited. But I don't know Linq syntax that well.
I can return whole objects from a query like this:
var query = from foo...
Whiles asked 15/7, 2010 at 13:24
2
Solved
I need help with eager loading in with Linq in NHibernate 3 trunk version.
I have a many-to-many relationship like this:
public class Post
{
public int Id {get;set;}
public IList<Tag> Ta...
Smithsonite asked 15/1, 2010 at 21:57
3
Solved
There are several similar questions on this matter, by I still haven't found enough reasons to decide which way to go.
The real question is, is it reasonable to abstract the NHibernate using a Rep...
Leiva asked 1/5, 2010 at 14:24
3
Solved
I´m using Nhibernate 2.1.2.4000 GA with Nhibernate.Linq 1.0 and latest version of FluentNhibernate downloaded from master on github.
Im doing some tests and whenever I try to delete a entity retri...
Pennsylvania asked 22/1, 2010 at 22:48
1
Solved
Consider a typical NHibernate context class.
public class SampleContext : NHibernateContext
{
public SampleContext(ISession session)
: base(session)
{ }
public IQueryable<Person> People...
Claireclairobscure asked 14/12, 2009 at 20:4
1
Solved
Foo has Title.
Bar references Foo.
I have a collection with Bars.
I need a collection with Foo.Title.
If i have 10 bars in collection, i'll call db 10 times.
bars.Select(x=>x.Foo.Title)
At t...
Precipitin asked 5/10, 2009 at 10:17
1
Solved
I've got a problem with NHibernate trying to load a small hierarchy of data. My domain model looks like:
class GrandParent
{
int ID{get;set;}
IList<Parent> Parents {get; set;}
}
class Par...
Straitlaced asked 1/9, 2009 at 14:27
3
Solved
Anybody know of a way to batch NHibernate queries using NHibernate.Linq like you can do with MultiCriteria and ICriteria objects?
With MultiCriteria I can create something like this:
var crit = s...
Zoologist asked 26/3, 2009 at 6:12
© 2022 - 2024 — McMap. All rights reserved.