Questions tagged as 'nhibernate'

1
answer

I can not search the repository with Nhibernate C #

I'm new as a programmer, sorry if I can not explain clearly, but please tell me what I did wrong and if possible how to do better, I want to improve as a programmer and user here in StackOverflow I'm trying to create a criteria to be able to fet...
asked by 25.11.2018 / 02:13
1
answer

Difference between first and second level NHibernate cache

When searching for cache within NHibernate, I came across that there are two cache levels that can be used, the first level and the second level. I found articles with implementations of both types and everything, but I'd like to know what the r...
asked by 02.11.2014 / 15:40
1
answer

Sql generated by Linq

Hello, I would like to know how to view the sql code that a linq expression generates to be run by ADO.Net. I'm using NHibernate as an ORM framework.     
asked by 03.03.2016 / 20:49
1
answer

How to create a query with union using NHibernate

I need to implement a query in nhibernate to do a union between 2 tables. In sql , it would look something like this: SELECT T1.Id AS ID FROM TABELA1 AS T1 UNION SELECT T2.Id AS ID FROM TABELA2 AS T2 I did not find any...
asked by 03.04.2014 / 19:42
1
answer

Is there any way to set NHibernate to not parameterize a query?

Problem I have a Linq query with NHibernate in which I need to concatenate the results with a separator to compare it with those of the% main_coq, is something similar to the one shown below: IQueryable<string> queryList = (from t1...
asked by 03.09.2014 / 15:04
0
answers

Not overlapping the value

I want the final information of the calculation to overwrite what is already saved in the Inventory table, as it would be to do this, because Save is overwriting correctly, I tried to apply in the update, but not saved. > Update: var Consult...
asked by 09.04.2018 / 17:16
0
answers

How to get the count and objects with criteria jpa?

I need to return the collation results and also the number of each item in a query with criteria jpa. public List<Dica> obterDicaPorUsuario(){ final CriteriaBuilder cb = getEntityManager().getCriteriaBuilder(); final CriteriaQue...
asked by 13.02.2018 / 17:48
1
answer

nHibernate save string in upper case

Hello, is there any nHibernate mapping option to save the string fields in uppercase mode? Thank you.     
asked by 02.09.2015 / 22:49
0
answers

Criteria: Subquery with multiple columns

I have the problem and I can not resolve it. How to turn this query into NHibernate Criteria. SELECT ordid, prodid, qty FROM item WHERE (prodid, qty) IN (SELECT prodid, qty FROM item WHER...
asked by 28.05.2015 / 22:08
2
answers

I need to do a SUM within Group BY in Lambda

I'm trying to create a summary report where it consists of doing GROUP BY with SUM , I want to know how I could do this in C # with lambda or hql (Nhibernate), I was able to do a GROUP BY, but I can not puts SUM, an example of what...
asked by 02.02.2018 / 17:28