Questions tagged as 'fluent-nhibernate'

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
2
answers

Create Database with FluentNHibernate

Is it possible through FluentNHibernate to create the database just as tables are created? I have the following class: public class Helper : IRepositorioHelper { private static ISessionFactory _sessionFactory; private static ISessionF...
asked by 16.09.2014 / 04:24
1
answer

How do I know if the client is already open on another computer?

I'm making a system that can and will open on possibly 2 to 7 computers. There is concern in the following case: PC1 opened the client's account and started editing. PC4 has opened the client account John just to see some data. PC1 has f...
asked by 23.07.2014 / 16:15
1
answer

Entity with simple key referencing another with key composed

I'm using Fluent NHibernate to map my classes, and I have the following situation: UserMap class public class UsuarioMap : ClassMap<Usuario> { public UsuarioMap() { Table("USUARIOS"); Id(x => x.ID, "USUARIO_...
asked by 13.05.2014 / 21:50
0
answers

NHibernate keep two Mapping for a single object

I would like to keep two different mappings for a single object is it possible to do this with NHibernate?     
asked by 03.07.2018 / 20:58
0
answers

Fluent NHibernate does not load daughters tables

I have 3 related tables: Lesson (Id (PK), Name) LessonQuestion (Id (PK), LessonId (FK), Title) LessonQuestionAnswer (Id (PK), LessonQuestionId (FK), Value) My Model: public class Lesson : Entity { public virtual String Name { get; set; }...
asked by 15.06.2018 / 16:02
0
answers

Increase varchar field size (existing in the database) with NHibernate

Let's say that this field with size 11 exists in the database, across multiple clients. Map(x => x.CpfCnpj).Not.Nullable().Length(11); And one day I need to raise it to .Length (14). Is there any way to configure for NHibernate to do thi...
asked by 15.12.2016 / 14:49
1
answer

Problems with not null fields creation with FluentNHibernate

I have a problem creating fields using FluentNhibernate and Postgres. User Class: public class Usuario { public virtual int idUsuario { get; set; } public virtual string nome { get; set; } [NotNullNotEmpty] public virtual str...
asked by 01.10.2016 / 18:52
1
answer

Slowness with FluentNHibernate

I'm using FluentNHibernate in a simple product registration application. The first time I run something that accesses the database (product query screen or a product registration), the site will load for a long time. But after this first load...
asked by 10.05.2016 / 18:36