Questions tagged as 'fluent-nhibernate'

1
answer

How to bring all items that do not have reference to certain table [SQL]

I'm using NHibernate to do a sql query in C #, however I have a question. I have the following structure: public class Pessoa { public long Id {get; set;} public string Nome {get; set;} } public class Usuario { public long Id { //...
asked by 19.02.2018 / 19:21
0
answers

Could not create the driver from NHibernate.Driver.OracleDataClientDriver, NHibernate, Version = 4.0.0.4000, Culture = neutral,

I'm working on an application with N Hibernate and Fluent NHibernate. I'm having problems with the settings of my App.config . I do not know exactly what's wrong with my settings. I'm getting this Exception: NHibernate.HibernateExcepti...
asked by 28.11.2017 / 13:41
1
answer

FluentNHibernate.Cfg.FluentConfigurationException.GetObjectData how to solve?

I have a website that uses FluentNhibernate and now I have uploaded this site to the provider but when I try to open the site it shows me some FluentNhibernate Exceptions. This site, on my computer, works very well without any problem, but the p...
asked by 07.06.2017 / 01:56
1
answer

Nhibernate Self-reference Mapping

Hello, I need to return a list of child objects of the same type as the parent. however, using nhibernate, the same only returns a child object, while in the database I have 3 children. Here are some excerpts from the code: Data Step...
asked by 17.05.2017 / 03:39
1
answer

Generate sequence for field

Is it possible to create a sequence without changing the field to id? Id(x => x.Id).GeneratedBy.Identity(); Map(x => x.DocumentoNumero); Using this example, I would like to keep a sequence for DocumentoNumero , but at the sa...
asked by 11.05.2017 / 15:44
1
answer

How to remove an object from a HasManyToMany relationship?

I have 2 entities that relate: Entities Empresa and FormaPagamento many companies can have many forms of payment, to save this working well but now I want to remove the forms of payment that the company has and I can not. How to...
asked by 25.10.2016 / 16:49
1
answer

Ignore property with FluentNHibernate?

I'm trying to ignore a property of a class for mapping with FluentNHibernate and I'm not getting it. I'm trying to follow this example link . How to do this? Trying. public class Caixa { public virtual long id...
asked by 20.09.2016 / 20:56
1
answer

OneToMany entity mapping with Fluent NHibernate

Gentlemen, my problem is apparently simple, I must be doing or forgetting something and I just can not see the error. Can you help me? I have class Cliente : public class Cliente { public Cliente () { } public virtual...
asked by 08.07.2015 / 14:05
1
answer

System.NullReferenceException was unhandled by user code [duplicate]

When compiling my application I received this error from the image below, would anyone know how I could solve it?     
asked by 27.03.2018 / 14:47