Thanks, that did the trick (for that one!)
Then got some other errors which are in mapping files that im not using yet so have removed them for now, but am getting a few errors like this one
"The following types may not be used as proxies:
WM.Business.Classes.Contacts: method set_ContactID should be virtual
WM.Business.Classes.Contacts: method set_EmailAddress should be virtual
WM.Business.Classes.Contacts: method get_Lastname should be virtual
WM.Business.Classes.Contacts: method get_FirstName should be virtual
WM.Business.Classes.Contacts: method set_FirstName should be virtual
WM.Business.Classes.Contacts: method get_EmailAddress should be virtual
WM.Business.Classes.Contacts: method set_Lastname should be virtual
WM.Business.Classes.Contacts: method get_ContactID should be virtual"
Any thoughts? (it all seems pretty bog standard class and map to me? but then i admit i am not grasping this as quickly as i have other things
Map
Code:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<class name="WM.Business.Classes.Contacts, Business" table="Contacts" >
<id name="ContactID" column="ContactID" type="Int32" unsaved-value="0">
<generator class="identity" />
</id>
<property name="FirstName" column="FirstName" type="String" length="50" />
<property name="Lastname" column="Lastname" type="String" length="50" />
<property name="EmailAddress" column="EmailAddress" type="String" length="100" />
</class>
</hibernate-mapping>
class
Code:
Public Class Contacts
Protected mContactID As Integer
Protected mFirstName As String
Protected mLastname As String
Protected mEmailAddress As String
Public Sub New()
End Sub
Public Property ContactID() As Integer
Get
Return mContactID
End Get
Set(ByVal value As Integer)
mContactID = value
End Set
End Property
Public Property FirstName() As String
Get
Return mFirstName
End Get
Set(ByVal value As String)
mFirstName = value
End Set
End Property
Public Property Lastname() As String
Get
Return mLastname
End Get
Set(ByVal value As String)
mLastname = value
End Set
End Property
Public Property EmailAddress() As String
Get
Return mEmailAddress
End Get
Set(ByVal value As String)
mEmailAddress = value
End Set
End Property
End Class