Thread:
 I got it (NHibernate 1.2 + .NET 2.0 + MS SQL Serve... 
 steinisweb   09 May 2007, 04:48 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: steinisweb (09 May 2007, 04:48) Replies: 0, Views: 7239
Subject: I got it (NHibernate 1.2 + .NET 2.0 + MS SQL Server 200...
At first, i try this Quickstart Tutorial and it didn't work. So i read a
lot in forum.
Actually i change in User.hbm.xml one attribute:

old: <hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
to: <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">

After i doing this i extends the table property in class tag:
old: table="users"
to: table="[NHibernate].[dbo].[users]"

because the code didn't found my table. Before i had created the
database and had executed the script from tutorial. 

Then i add virtual properties to User class. Kind of this:

public virtual string EmailAddress
{
    get { return emailAddress; }
    set { emailAddress = value; }
}

To the end. It works :-) Hopefully it helps you.
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]