⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fixture.cs

📁 NHibernate NET开发者所需的
💻 CS
字号:
using System;
using NUnit.Framework;

namespace NHibernate.Test.NHSpecificTest.NH607
{
	[TestFixture]
	public class Fixture : BugTestCase
	{
		public override string BugNumber
		{
			get { return "NH607"; }
		}

		[Test]
		public void Test()
		{
			PackageParty participant = new PackageParty();
			Package pac = new Package();

			PackageItem packageItem = new PackageItem();
			pac.PackageItems.Add(packageItem);
			packageItem.Package = pac;

			PPP packagePartyParticipant = new PPP();

			packagePartyParticipant.PackageItem = packageItem;
			packagePartyParticipant.PackageParty = participant;

			// make the relation bi-directional
			participant.ParticipatingPackages.Add(packagePartyParticipant);
			packageItem.PackagePartyParticipants.Add(packagePartyParticipant);

			using (ISession session = OpenSession())
			{
				session.Save(pac);
				session.Flush();
			}

			using (ISession session = OpenSession())
			{
				session.Delete("from System.Object o");
				session.Flush();
			}
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -