📄 fixture.cs
字号:
using System;
using NUnit.Framework;
namespace NHibernate.Test.NHSpecificTest.NH315
{
/// <summary>
/// Summary description for Fixture.
/// </summary>
[TestFixture]
public class Fixture : BugTestCase
{
public override string BugNumber
{
get { return "NH315"; }
}
[Test]
public void SaveClient()
{
Client client = new Client();
Person person = new Person();
client.Contacts = new ClientPersons();
using (ISession s = OpenSession())
{
s.Save(person);
client.Contacts.PersonId = person.Id;
client.Contacts.Person = person;
s.Save(client);
s.Flush();
}
using (ISession s = OpenSession())
{
s.Delete(client);
s.Delete(person);
s.Flush();
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -