ok, i changed it into cfg.AddAssembly("WindowsApplication1");
and it goes now over. Now I have an error here
session.Save(newUser);
The error says: Unknown entity class: Omega.User
As you can see in the prior post, the namespace is Omega and the class is called User
my user.hbn.xml file looks like this
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
<class name="Omega.User, Omega" table="users">
<id name="Id" column="LogonId" type="String" length="20">
<generator class="assigned" />
</id>
<property name="UserName" column="Name" type="String" length="40"/>
<property name="Password" type="String" length="20"/>
<property name="EmailAddress" type="String" length="40"/>
<property name="LastLogon" type="DateTime"/>
</class>
</hibernate-mapping>
|