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

📄 fixture.cs

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

namespace NHibernate.Test.NHSpecificTest.NH606
{
	public class HasNonGenericList
	{
		private int id;
		private IList nonGenericList;

		public virtual int Id
		{
			get { return id; }
			set { id = value; }
		}

		public virtual IList NonGenericList
		{
			get { return nonGenericList; }
			set { nonGenericList = value; }
		}
	}

	[TestFixture]
	public class Fixture
	{
		[Test, ExpectedException(typeof(MappingException))]
		public void InvalidGenericMapping()
		{
			ISessionFactory sf = new Configuration()
				.AddResource(typeof (Fixture).Namespace + ".Mapping.hbm.xml", typeof (Fixture).Assembly)
				.BuildSessionFactory();
			sf.Close();
		}
	}
}

⌨️ 快捷键说明

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