I have the following query in HQL:
select
photoRating
from
PhotoRating as photoRating
inner join fetch
photoRating.FormularioRespostaDoUsuario as form
inner join fetch
form.Trecho as section
And whenever I run it using the...
I have the following scenario:
public class ExemploDTO
{
public virtual int Id { get; set; }
public virtual List<PessoaDTO> Cliente { get; set; }
public virtual ServicoDTO Servico { get; set; }
}
How would map this class u...
I am having difficulty in composing primary key mapping using fluent nhibernate. I have the following class:
public class NotaItem
{
public NotaItem(){}
public virtual int Id { get; set; } //chave primaria
public virtual Int16 Nu...
I'm using Nhibernate with WebAPI
I have 2 entities Profile and personLogin
Personalogin may have N Profile
and Profile 1 Person Login. However, when I go to the webservice PessoaLogin, the Profile reference only works if it is NULL if I add a Pr...
I have a many-to-many relationship (M: M) using Fluent NHibernate:
Class / Map - Drive:
public class Unidade
{
public virtual int Id { get; set; }
public virtual string Descricao { get; set; }
public virtual IList<Unidade...
In the "LOG" class, I'm trying to indicate the column name, which is an FK, using FluentNHibernate's References. I have the following class structure:
public class Pessoa
{
public virtual int Id { get; set; }
public virtual string Nom...
I'm using Ninject in ASP.Net MVC and trying to implement, but I'm getting an error:
Error activating ISessionFactory
No matching bindings are available, and the type is not self-bindable.
Activation path:
3) Injection...
Good morning,
I have a query to run in my database, but here in our projects we use Nhibernate as an ORM tool.
I'm having difficulty passing this SQL query to a syntax used with NHibernate.
The query is down:
SELECT distinct a.NumContrO...
I'm having trouble mapping multiple databases with FluentNhibernate.
I used the following methodology (remembering that the databases are different).
I created 3 FluentSessionFactory for each bank with its particular connection.
Later I...
I'm having this problem, does anyone know how I can fix this problem?
This is my Nhibernate config code.
public class NhibernateHelper
{
private ISessionFactory sessionFactory;
public static ISession GetSession()
{
re...