Click here to Skip to main content
15,898,981 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to put powerpoint on different displays (multiply monitors)? Pin
OriginalGriff7-May-09 5:46
mveOriginalGriff7-May-09 5:46 
GeneralRe: How to put powerpoint on different displays (multiply monitors)? Pin
molda7-May-09 6:17
molda7-May-09 6:17 
GeneralRe: How to put powerpoint on different displays (multiply monitors)? Pin
Luc Pattyn7-May-09 7:18
sitebuilderLuc Pattyn7-May-09 7:18 
GeneralRe: How to put powerpoint on different displays (multiply monitors)? Pin
OriginalGriff7-May-09 8:19
mveOriginalGriff7-May-09 8:19 
AnswerRe: How to put powerpoint on different displays (multiply monitors)? Pin
Luc Pattyn7-May-09 7:17
sitebuilderLuc Pattyn7-May-09 7:17 
GeneralRe: How to put powerpoint on different displays (multiply monitors)? Pin
molda7-May-09 21:40
molda7-May-09 21:40 
GeneralRe: How to put powerpoint on different displays (multiply monitors)? Pin
Luc Pattyn8-May-09 0:40
sitebuilderLuc Pattyn8-May-09 0:40 
QuestionPlease help with NHibernate. Could not compile the mapping document. Pin
Nopo7-May-09 4:45
Nopo7-May-09 4:45 
Hi all,

I'm doing a program that saves customer details to the database and I'm using NHibernate. I'm very new in it and I'm getting help from the net. I have a problem compiling the mapping file, I get the following error:
"Could not compile the mapping document: Customer.hbm.xml"

I don't have an idea of what I did wrong. Please, if you know what I missed or did wrong, I'd really appreciate your help/advice. Thanks.

Here is my class:

using System;
using System.Collections.Generic;
using System.Text;
using NHibernate;
using NHibernate.Cfg;

namespace NHibernate_Demo
{

class Program
{
static void Main(string[] args)
{

// Loads the NHibernate Types to prepare for Serialization
Configuration cfg = new Configuration();
cfg.Configure();

//cfg.AddAssembly(typeof(NHibernate_Demo.Customer).Assembly);
//cfg.AddClass(typeof(Customer));
cfg.AddFile("Customer.hbm.xml");

//Opens a session to NHiberbate to allow us to work with objects
ISessionFactory sessionsF = cfg.BuildSessionFactory();

//let ISessiionFactory open connection
ISession sessionS = sessionsF.OpenSession();

ITransaction transaction = sessionS.BeginTransaction();
{
Customer customer = (Customer)
sessionS.Load(typeof(Customer), "ALFKI");

// Show the Contact Name of the Customer
//MessageBox.Show(customer.ContactName);

sessionS.Close();
}


}

}

}


I get an error at this line:

cfg.AddFile("Customer.hbm.xml");

Thanks.
QuestionWatermarking over Video Pin
anki1237-May-09 3:19
anki1237-May-09 3:19 
AnswerRe: Watermarking over Video Pin
Rajesh R Subramanian7-May-09 3:26
professionalRajesh R Subramanian7-May-09 3:26 
QuestionRemove duplicate nodes from xml using c# Pin
ipstefan7-May-09 2:56
ipstefan7-May-09 2:56 
AnswerRe: Remove duplicate nodes from xml using c# Pin
musefan7-May-09 4:26
musefan7-May-09 4:26 
GeneralRe: Remove duplicate nodes from xml using c# Pin
ipstefan7-May-09 6:00
ipstefan7-May-09 6:00 
GeneralRe: Remove duplicate nodes from xml using c# Pin
musefan7-May-09 6:13
musefan7-May-09 6:13 
GeneralRe: Remove duplicate nodes from xml using c# Pin
ipstefan7-May-09 7:00
ipstefan7-May-09 7:00 
GeneralRe: Remove duplicate nodes from xml using c# Pin
musefan7-May-09 21:58
musefan7-May-09 21:58 
GeneralRe: Remove duplicate nodes from xml using c# Pin
ipstefan8-May-09 20:51
ipstefan8-May-09 20:51 
QuestionListView - Select ListViewItem Pin
al3xutzu007-May-09 1:34
al3xutzu007-May-09 1:34 
AnswerRe: ListView - Select ListViewItem Pin
Nagy Vilmos7-May-09 1:51
professionalNagy Vilmos7-May-09 1:51 
GeneralRe: ListView - Select ListViewItem Pin
al3xutzu007-May-09 2:05
al3xutzu007-May-09 2:05 
AnswerRe: ListView - Select ListViewItem Pin
fly9047-May-09 2:01
fly9047-May-09 2:01 
AnswerRe: ListView - Select ListViewItem Pin
CPallini7-May-09 2:10
mveCPallini7-May-09 2:10 
JokeRe: ListView - Select ListViewItem Pin
Rajesh R Subramanian7-May-09 2:54
professionalRajesh R Subramanian7-May-09 2:54 
GeneralRe: ListView - Select ListViewItem Pin
Nagy Vilmos7-May-09 2:56
professionalNagy Vilmos7-May-09 2:56 
GeneralRe: ListView - Select ListViewItem Pin
Rajesh R Subramanian7-May-09 3:18
professionalRajesh R Subramanian7-May-09 3:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.