Questions tagged as 'nhibernate'

2
answers

Foreach in Foreach

I need to make a foreach inside another but are two tables one is called categories and the other is a galerya, I need to return all galeryas within each category only the category name only appears once, here's my code (var db = new DBContext...
asked by 25.08.2015 / 22:05
1
answer

Problem retrieving References from a query in Nhibernate HasMany

I'm using Nhibernate with WebAPI I have 2 entities Profile and personLogin Personalogin may have N Profile and Profile 1 Person Login. However, when I go to the webservice PessoaLogin, the Profile reference only works if it is NULL if I add a Pr...
asked by 18.12.2014 / 18:21
1
answer

High volume data loading with NHibernate + Windows Forms

I use ORM NHibernate in a windows forms project and there is a forecast of working with a large volume of data across multiple tables, ranging from 1 to 15 thousand records on average. Although not as large a volume of data as some may say, this...
asked by 07.05.2014 / 17:26
1
answer

NHibernate + .NETFramework 3.5

Would anyone know what the latest version of Nhibernate works in .NET 3.5? I got to search the site itself, but I could not find it. The one I own is 2.1.0.4000.     
asked by 29.11.2018 / 20:59
1
answer

Using elements like "Not Exists" and Sub Query in LINQ, LAMBDA EXPRESSION and Nhibernate

Good morning, I have a query to run in my database, but here in our projects we use Nhibernate as an ORM tool. I'm having difficulty passing this SQL query to a syntax used with NHibernate. The query is down: SELECT distinct a.NumContrO...
asked by 06.09.2018 / 14:09
0
answers

Map Multiple Databases with FluentNhibernate

I'm having trouble mapping multiple databases with FluentNhibernate. I used the following methodology (remembering that the databases are different). I created 3 FluentSessionFactory for each bank with its particular connection. Later I...
asked by 03.07.2018 / 19:36
0
answers

NHibernate error: No persister for

I would like help with the error when I try to write NHibernate records through XML mapping. The project has separate layers. In the domain project, my entity is: namespace NHibernateTesteWeb.Domain.Entity { public class Company...
asked by 14.07.2018 / 23:33
1
answer

Connection Sql Server Fluent NHibernate

I'm having trouble setting up connection to Sql Server database I have this connection method but give me this error message when I run the application public static ISessionFactory CriaConexao() { try { if (Ses...
asked by 21.04.2018 / 22:58
0
answers

Does not update value

The calculation and the values returns everything to me, however when it comes to overlapping the previous value and adding the new it does not change, it keeps the old one. Buy Controller: public ActionResult Update(CompraModel viewModel)...
asked by 27.03.2018 / 17:23
0
answers

NHibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing. Type:

I'm having this problem, does anyone know how I can fix this problem? This is my Nhibernate config code. public class NhibernateHelper { private ISessionFactory sessionFactory; public static ISession GetSession() { re...
asked by 03.04.2018 / 15:39