I have a class that currently only holds a date taken from a table in a SQL database, the class and hbm.xml file are shown below:
Code:
Public Class MyClass
    Public Sub New()
    End Sub
    Private m_DueDate As Date
    
    Public ReadOnly Property DueDate() As Date
        Get
            Return Me.m_DueDate
        End Get
    End Property    'DueDate
    Private m_ID As Integer
End Class
Code:
<?xml version="1.0" encoding="utf-8" ?> 
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
   <class name="MyAssembly.MyClass, MyAssembly" table="MY_TBL">   
   
      <id name="ID" column="MY_UNIQUE" type="Int32" unsaved-value="0">
         <generator class="assigned"/>
      </id>
   
      <property name="DueDate" column="MY_DUE_DATE" access="field.pascalcase-m-underscore"/>
      
   </class>
</hibernate-mapping>
When I try to call
Code:
Me.m_MadisunSession.CreateCriteria(GetType(MyAssembly.MyClass)).List
to populate an arraylist I get the following error message:
No Persistors for: MyAssembly.MyClass
What is it trying to tell me?