Questions tagged as 'nhibernate'

2
answers

Create Database using Fluent Nhibernate

Is there any way to create a new database directly from my application? I'm using Asp.Net MVC5 C #, Fluent Nhibernate and PostgreSQL. Note: I can already access my tables through the application, what I need is to generate a new database thro...
asked by 10.01.2018 / 18:43
1
answer

Problem saving

Only one form that is returning this error, the question I do not know what can be or how to do it, some ask to put the relationship in cascade what is already.   NHibernate.TransientObjectException: object references an unsaved transient ins...
asked by 28.02.2018 / 18:55
1
answer

Returns query value in a variable

I need to return the value of a query of the query in an int variable, to be able to compare with my TextBox, but I can not make the comparison because it can not compare integer (textbox) with a group of methods (jquery), follow my code below....
asked by 21.07.2017 / 22:17
1
answer

Executing Query with SUM in HQL?

I'm trying to use SUM to add an attribute of an entity using HQL of NHibernate , but every time I run query returns empty. I'm following the example here but I still could not do it. How to do this? I'm trying...
asked by 05.10.2016 / 12:41
1
answer

NHibernate is modifying property when returning by Web Api

I have a web service api where a query is made to the database through nhibernate, but when returning the object, its referenced properties are overwritten, I believe it's because of the nhibernate proxy. HowcanIbedoingtofixthisproblem?Follo...
asked by 21.07.2016 / 16:15
1
answer

Do you doubt with FluentNHibernate mapping?

I'm trying to create a scheme to set permissions on my system and these permissions are given to the user profile, where you can choose what each profile is allowed to do in each module. For this I have created some tables and I am in doubt how...
asked by 09.03.2016 / 05:26
1
answer

Quantity limit on database query

public IList<DtoContrato> ConsulteListaPorListaDeIds(List<Guid> listaIds) { return Conversor(Persistencia().Where(x => listaIds.Contains(x.Id))); } My question is, if the list of ids has 100mil records for example, can nhiber...
asked by 24.12.2015 / 10:33
1
answer

Creating connection with MySQL with FluentNHibernate?

I'm trying to create a connection to MySQL using NHibernate and FluentNHibernate. I added by% n of% but when I try to create the connection MySql.Data is not found in the context. I'm trying like this. private static ISessionFactory...
asked by 27.02.2016 / 02:28
1
answer

ASP.NET MVC: Automapper and NHibernate

Good evening, I have a problem. I'm using nHibernate to connect to my database and I also use Automapper to map my Entities to my ViewModel. But when I select the entity I have several relationships and when I map to the ViewModel it ends up...
asked by 10.10.2015 / 00:42
1
answer

Configuration Table

How could I do to use a configuration table in nHibernate? That is, a table of only one record and that it only controls this record, I know I have to do this via application, but I wanted to know if nHibernate already has some feature that hand...
asked by 24.08.2015 / 19:07