These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: The type or namespace name 'Cfg' does not exist in NHibernat
PostPosted: Thu Oct 08, 2009 11:54 am 
Beginner
Beginner

Joined: Thu Oct 08, 2009 11:44 am
Posts: 21
Location: Chicago
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


Top
 Profile  
 
 Post subject: Re: The type or namespace name 'Cfg' does not exist in NHibernat
PostPosted: Thu Oct 08, 2009 3:24 pm 
Beginner
Beginner

Joined: Thu Oct 08, 2009 11:44 am
Posts: 21
Location: Chicago
That problem was that I did not have the Distribution just the linq .dll (not very good documentation about what is what)

On to new problems.

---John Putnam


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.