Ok no real problem here...Is seemed that there were two different
modul.patienten - Assemblies at the same time so the app was a little
confused :-)

2009/6/20 Belvasis <[email protected]>

> Hi,
>
> After a call to
>
>         ICriteria pCrit = pSession.CreateCriteria(typeof(T));
>         //Abfrage ausführen
>         pResult = pCrit.List<T>();
>
> i get the following exception and don't know what the problem is
>
> NHibernate.Exceptions.GenericADOException was unhandled
>   Message="Unable to perform find[SQL: SQL not available]"
>   Source="NHibernate"
>
> InnerException: System.ArgumentException
>        Message="Model.Patienten.Patient ist kein Wert des Typs
> Model.Patienten.Patient und kann in dieser generischen Auflistung nicht
> verwendet werden.\r\nParametername: value"
>        //*Model.Patienten.Patient* is not a value of type *
> Model.Patienten.Patient* and can not used in this generic list
> Source="mscorlib"
>        ParamName="value"
> The mapping is really simple:
>
> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
>                    assembly="Model.Patienten"
>                    namespace="Model.Patienten">
>
>   <class name="Patient"  table="PATIENTENDATEN">
>     <id name="ID" column="PATIENT_ID" type="Int32" unsaved-value="0">
>       <generator class="assigned"></generator>
>     </id>
>     <property name="Identity"   column="PATNR"    type="string"
> length="255" not-null="true"/>
>     <property name="Vorname"    column="VORNAME"  type="string"
> length="255" not-null="false"/>
>     <property name="Nachname"   column="NAME"     type="string"
> length="255" not-null="false"/>
>     <property name="Anreise"    column="ANREISE"  type="DateTime"
> not-null="false"/>
>     <property name="Abreise"    column="ABREISE"  type="DateTime"
> not-null="false"/>
>   </class>
>
> Any idea what i'm doing wrong?
>
> Thank
>

--~--~---------~--~----~------------~-------~--~----~
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