Click here to Skip to main content
15,911,890 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: Xpath expression Pin
George L. Jackson14-Jul-07 9:29
George L. Jackson14-Jul-07 9:29 
GeneralRe: Xpath expression Pin
Ibana2-Aug-07 4:28
Ibana2-Aug-07 4:28 
GeneralRe: Xpath expression Pin
Ibana2-Aug-07 4:51
Ibana2-Aug-07 4:51 
QuestionRe: Xpath expression Pin
George L. Jackson2-Aug-07 12:03
George L. Jackson2-Aug-07 12:03 
AnswerRe: Xpath expression Pin
Ibana3-Aug-07 6:58
Ibana3-Aug-07 6:58 
AnswerRe: Xpath expression Pin
George L. Jackson3-Aug-07 9:39
George L. Jackson3-Aug-07 9:39 
GeneralRe: Xpath expression Pin
Ibana7-Aug-07 6:36
Ibana7-Aug-07 6:36 
QuestionUnknown entity class: NHibernate.Examples.QuickStart.User Pin
itbrainsoft12-Jul-07 19:12
itbrainsoft12-Jul-07 19:12 
It is users.sql :

use NHibernate
go

CREATE TABLE users (
LogonID nvarchar(20) NOT NULL default '0',
Name nvarchar(40) default NULL,
Password nvarchar(20) default NULL,
EmailAddress nvarchar(40) default NULL,
LastLogon datetime default NULL,
PRIMARY KEY (LogonID)
)
go


It is users.cs :

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


namespace NHibernate.Examples.QuickStart
{
public class User
{
private string id;
private string userName;
private string password;

private string emailAddress;
private DateTime lastLogon;


public User()
{
}

public string Id
{
get { return id; }
set { id = value; }
}

public string UserName
{
get { return userName; }
set { userName = value; }
}

public string Password
{
get { return password; }
set { password = value; }
}

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

public DateTime LastLogon
{
get { return lastLogon; }
set { lastLogon = value; }
}

}

//interface ISession
//{
// void save(users newUser);

// void Save(users newUser);
//}

}


It is User.hbm.xml :

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


namespace NHibernate.Examples.QuickStart
{
public class User
{
private string id;
private string userName;
private string password;

private string emailAddress;
private DateTime lastLogon;


public User()
{
}

public string Id
{
get { return id; }
set { id = value; }
}

public string UserName
{
get { return userName; }
set { userName = value; }
}

public string Password
{
get { return password; }
set { password = value; }
}

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

public DateTime LastLogon
{
get { return lastLogon; }
set { lastLogon = value; }
}

}

//interface ISession
//{
// void save(users newUser);

// void Save(users newUser);
//}

}

It is App.config :


<configuration>

<configsections>



<nhibernate>
<add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider">
<add key="hibernate.dialect" value="NHibernate.Dialect.MsSql2005Dialect">
<add key="hibernate.connection.driver_class" value="NHibernate.Driver.SqlClientDriver">
<add key="hibernate.connection.connection_string" value="Data Source=dev2;Initial Catalog=NHibernate;User ID=sa;Password=buyagift;">





It is Programs.cs :

using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace NHibernate
{
static class Program
{
///
/// The main entry point for the application.
///

[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
// Application.Run(new NHibernate.Form1());
Application.Run(new NHibernate.Examples.QuickStart.Form1());

}
}
}



This code generates following error:

Unknown entity class: NHibernate.Examples.QuickStart.User

Can anyone help me please?
Thanks


shoaib

QuestionHow to build source with XML componet in DDK source? Pin
wanylee11-Jul-07 15:51
wanylee11-Jul-07 15:51 
AnswerRe: How to build source with XML componet in DDK source? Pin
George L. Jackson14-Jul-07 9:48
George L. Jackson14-Jul-07 9:48 
QuestionDate comparison in XML Pin
Muhammad Junaid Khan11-Jul-07 1:50
Muhammad Junaid Khan11-Jul-07 1:50 
QuestionXslt (table row shrinks in resultant html) [modified] Pin
Madhanlal JM10-Jul-07 23:46
Madhanlal JM10-Jul-07 23:46 
AnswerRe: Xslt (table row shrinks in resultant html) Pin
George L. Jackson14-Jul-07 10:10
George L. Jackson14-Jul-07 10:10 
GeneralRe: Xslt (table row shrinks in resultant html) Pin
Madhanlal JM15-Jul-07 23:28
Madhanlal JM15-Jul-07 23:28 
GeneralRe: Xslt (table row shrinks in resultant html) Pin
George L. Jackson16-Jul-07 16:07
George L. Jackson16-Jul-07 16:07 
QuestionHow to show image in XML? Pin
kittipomgmd9-Jul-07 17:45
kittipomgmd9-Jul-07 17:45 
AnswerRe: How to show image in XML? Pin
Christian Graus10-Jul-07 1:46
protectorChristian Graus10-Jul-07 1:46 
AnswerRe: How to show image in XML? Pin
Nick Rioux25-Jul-07 1:06
Nick Rioux25-Jul-07 1:06 
QuestionCreate new windows user via a Web service Pin
BLOEDHOND9-Jul-07 4:04
BLOEDHOND9-Jul-07 4:04 
AnswerRe: Create new windows user via a Web service Pin
BLOEDHOND9-Jul-07 4:06
BLOEDHOND9-Jul-07 4:06 
Questionupdate XML file dynamically Pin
Jhony george6-Jul-07 19:32
Jhony george6-Jul-07 19:32 
AnswerRe: update XML file dynamically Pin
Ilya Verbitskiy7-Jul-07 2:11
Ilya Verbitskiy7-Jul-07 2:11 
Questionextract data from "dynamic" XML-files Pin
Ibana3-Jul-07 1:26
Ibana3-Jul-07 1:26 
AnswerRe: extract data from "dynamic" XML-files Pin
BoneSoft6-Jul-07 4:05
BoneSoft6-Jul-07 4:05 
QuestionAny one tell me how to convert excel file to xml dynamically Pin
Praveenchandkr2-Jul-07 17:36
Praveenchandkr2-Jul-07 17:36 

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.