Hi Richard,
thanks for your reply. :-)

this is the mapping

<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-
lazy="true" assembly="GestioneInsoluti.Domain"
namespace="GestioneInsoluti.Domain.Entity">
  <class name="Anagrafica" table="Anagrafiche" xmlns="urn:nhibernate-
mapping-2.2" dynamic-update="true" schema="dbo">
    <id name="Id" column="idAnagrafica" type="System.Int32" unsaved-
value="0">
      <generator class="native" />
    </id>
    <property name="Codice"/>
    <property name="RagioneSociale"/>
    <property name="Indirizzo"/>
    <property name="Localita"/>
    <property name="Cap"/>
    <property name="Comune"/>
    <property name="Prov"/>
    <property name="Stato"/>
    <property name="PartitaIva"/>
    <property name="CodFiscale"/>
    <property name="BancaDenominazione"/>
    <property name="BancaAgenzia"/>
    <property name="Iban"/>
    <property name="DataCliente"/>
    <property name="DataDebitore"/>
    <property name="DataInformazioni"/>
    <property name="Responsabile"/>
    <property name="ResponsabileDocumento"/>
    <property name="ResponsabileDocumentoDataRil"/>
    <property name="Note"/>
    <property name="DescAttivita"/>
  </class>

and this the class definition

namespace GestioneInsoluti.Domain.Entity
{
        public class Anagrafica
        {
                public virtual int Id { get; set; }


                public virtual string Codice { get; set; }
                public virtual string RagioneSociale { get; set; }
                public virtual string Indirizzo { get; set; }
                public virtual string Localita { get; set; }
                public virtual string Cap { get; set; }
                public virtual string Comune { get; set; }
                public virtual string Prov { get; set; }
                public virtual string Stato     { get; set; }
                public virtual string PartitaIva { get; set; }
                public virtual string CodFiscale { get; set; }
                public virtual string BancaDenominazione { get; set; }
                public virtual string BancaAgenzia { get; set; }
                public virtual string Iban { get; set; }
                public virtual DateTime? DataCliente { get; set; }
                public virtual DateTime? DataDebitore { get; set; }
                public virtual DateTime? DataInformazioni { get; set; }
                public virtual string Responsabile { get; set; }
                public virtual string ResponsabileDocumento { get; set; }
                public virtual DateTime? ResponsabileDocumentoDataRil { get; 
set; }
                public virtual string Note { get; set; }
                public virtual string DescAttivita { get; set; }
        }
}

Regards

Stefano

On 9 Dic, 16:32, "Richard Brown \(gmail\)" <[email protected]>
wrote:
> Hi Stefano,
>
> I don't see anything wrong with what you have there.  I'm guessing we'd need
> to see the class definition for Anagrafica and possible the mapping file
> too.
>
> Cheers,
>     Richard
>
>
>
> -----Original Message-----
> From: Stefano Paparesta
> Sent: Thursday, December 09, 2010 2:19 PM
> To: nhusers
> Subject: [nhusers] Query Over
>
> Hello, in my repository i'm  write
>
> var ret = Session.CreateQuery("from Anagrafica A");
> return ret.List<Anagrafica>();
>
> and work fine.
> But when replace with this code (query over)
>
> var list = Session.QueryOver<Anagrafica>()
> .OrderBy(m => m.RagioneSociale).Asc
> .List();
> return list;
>
> i get this error
>
> "Late bound operations cannot be performed on types or methods for
> which ContainsGenericParameters is true."
>
> What did I do wrong?
>
> regards
>
> Stefano Paparesta
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/nhusers?hl=en.- Nascondi testo citato
>
> - Mostra testo citato -

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to