First nhibernate attempt. Followed the quickstart pattern but with my own DB table and have everything in place in a console application (Visual Studio 2008) using C#. But won't compile. The message is
The type or namespace name 'Cfg' does not exist in the namespace 'NHibernate' (are you missing and assembly reference?)
I am also new to .net , coming from the Java JBoss side. I have on my
using System; using System.Collections.Generic; using System.Collections; using System.Text; using System.IO; using System.Security.AccessControl; using BDM_Common; using System.Data; using System.Linq; using BDM_Controller.Providers.Schwab; using NHibernate; using NHibernate.Cfg;
namespace BDM_Controller { class SProvider: IProvider { ...
I have
<section name="nhibernate" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> in the the app.config along with the section defining my DB connection.
Anyone know what I am missing?
Thanks,
---John Putnam
|