Questions tagged [NHibernate] (19)

2
answers

Script to transfer data from one table to another?

Hello, there are 2 signs on the Oracle, they have the same string name_id. Need from the first table name_id be transferred to the second table in a string name_id. Do not prompt how to construct request, if possible the example would be very helpful. Thank you.
Alana_Brakus asked March 25th 20 at 11:44
1
answer

How to combine queries in Nhibernate?

Hello, do not prompt as in Nhibernate for Sharpe to combine 2 Zaros in one. There are requests here:if (_queryParams.RoleId != null && _queryParams.BranchId == null) { var existsRolesInBranchQuery = QueryOver.Of<UserRoleMember>() .Where(x => x.AppRole.Id == _queryParams.RoleId) .Where(x => x.User.Id =...
Hailey_Johns asked March 24th 20 at 14:48
0
answer

ISession and IStatelessSession at the same time in one web service

Colleagues, help Council. There is a WCF service to access data used by a bunch of Fluent NHibernate + Castle Winsor. The situation is the following, there is the following piece of code in the repository — data source: public class DataRepository : IDataRepository<br> {<br> public IList GetData()<br>...
jorge.Windler81 asked October 8th 19 at 05:21
2
answers

Nhibernate, Paging, Count(*), OrderBy and performance?

Colleagues, There is a following task: there is a table with 100 000 records. Need to do pagination, sorting and filtering. Which way would be most optimal to sort and filter occurred on the database server, not the collection of in-memory apps? How to calculate Count(*) with NHibernate?
jorge.Windler81 asked October 8th 19 at 05:06
0
answer

NHibernate: how to determine the equality of transient and persistent objects?

There are classes inherited from public abstract class DomainObject { public int Id { get; private set; } // surrogate id on the database } The objects of these classes are coming over the network and stored in the database, thereby obtaining Id and becoming persistent. The problem is that the objects can receive the same ...
Marcelino.Hagenes asked October 2nd 19 at 15:32
0
answer

How to build spinogatti MVVM model with nHibernate entity?

This: - model for MVVM; - nHibernate entity; Question: how to construct a better interaction between them? I found an example on codeproject, there is a model and an entity represents a 1 and the same class. www.codeproject.com/Articles/424337/Tasks-managing... To me this option seems not very convenient(proper) because we ...
royal_Fritsch25 asked September 30th 19 at 23:05
1
answer

How to get from dataGridView deleted, added and changed entries that then need to pass in NHibernate?

Good time of day. A simple Windows Forms application that works with database via NHibernate. Data is loaded in the DataGridView with the possibility of further editing :IList<products> productsList = dbSession.CreateCriteria(typeof(Products)).List<products>(); BindingList<products> productsBindingList = ...
Marcia_OKon asked September 30th 19 at 18:57
1
answer

Datagridview — how to load values in DataGridViewComboBoxColumn from database using Nhibernate?

Welcome. Do not tell me how to load into Datagridview, DataGridViewComboBoxColumn in the values from the database using Nhibernate? The original conditions. There are two tables, Recipes and Products. <?xml version="1.0" encoding="utf-8" ?> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"> <class name=...
Marcia_OKon asked September 30th 19 at 14:22
0
answer

How to insert a new record into table with composite key using fluent nhibernate?

Good afternoon, everyone. Have the essence of the Person. Have the essence of the Program. Each Person can be multiple Program and each Program can be several Person. Is the substance PersonProgram. Using Fluent NHibernate create classes like this:// Person public class Person : Entity { public virtual Int32 Id { get; s...
axel.Koelpin86 asked September 27th 19 at 21:53
2
answers

NHibernate documentation, the community is in Russian, does it?

Climbed the entire Internet found only Eng forums and groups. If anyone knows, tell me?
joseph.Beck asked September 27th 19 at 14:05