Cheonan asked nhib.pdf, asking experts to solve the problem.
The following actions are made in sequence objects ﹕
Isession S = sessionfactory. opensession ();
Itransaction T = S. begintransaction ();
Try
{
S. Save (entity );
T. Commit ();
}
Catch (exception E)
{
T. rollback ();
Throw E;
}
Finally
{
S. Close ();
}
Using nunit statements to explain how SQL statements are like this. First, remove my tables, create tables, and then add new ones. Why. Bytes
drop table g_users
drop table g_guestbook
Create Table g_users (
ID int identity not null,
name nvarchar (20) null,
email nvarchar (40) null,
password nvarchar (20) null,
flag int null,
regtime datetime null,
Primary Key (ID)
Create Table g_guestbook (
ID int identity not null,
userid int null,
username nvarchar (20) null,
title nvarchar (100) null,
Article nvarchar (255) null,
pubtime datetime null,
Primary Key (ID)
nhibers: insert into g_users (email, name, regtime, password, flag) values (@ P0, @ P1, @ P2, @ P3, @ P4); select scope_identity ()