Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:1.0.2.0
Mapping documents: <?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0" namespace="WebApplication2" assembly="WebApplication2">
<class table="class" lazy="true">
<id name="Classid" column="classID" type="Int32" unsaved-value="0">
<generator class="assigned" />
</id>
<property column="name" type="String" name="Name" length="10" />
</class>
</hibernate-mapping>
Code between sessionFactory.openSession() and session.close():ISessionFactory sessionFactory = config.BuildSessionFactory();
ISession session = sessionFactory.OpenSession();
Class newClass = new Class();
newClass.Classid=1;//Int16.Parse(isbnTextBox.Text);
newClass.Name = "hey";
session.Save(newClass);
session.Flush();
Full stack trace of any exception that occurs:
Name and version of the database you are using:sql server2000
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
[quote] my code works compeletly true in a windows application. all classes are known and all mapping files works true. but i can not go progress in a web application, in first step, i see this error messege "unkown Class entity: . . ."
I can not find the problem reason ! Is there any body hwo can help me.
if possible, send me a true code with c#.