fixture.cs

来自「NHibernate NET开发者所需的」· CS 代码 · 共 29 行

CS
29
字号
using NHibernate.Cfg;
using NUnit.Framework;

namespace NHibernate.Test.NHSpecificTest.NH1290
{
	[TestFixture]
	public class Fixture
	{
		[Test]
		public void ExposeBug()
		{
	
			string hbm =
@"<?xml version='1.0' encoding='utf-8' ?> 
<hibernate-mapping xmlns='urn:nhibernate-mapping-2.2'
								namespace='NHibernate.Test.NHSpecificTest.NH1290'
								assembly='NHibernate.Test'>
	<database-object>
		<definition class='AuxType'/>
	</database-object>
</hibernate-mapping>";

			Configuration cfg = new Configuration();
			cfg.AddXmlString(hbm);
			// the mapping is added without problem
		}

	}
}

⌨️ 快捷键说明

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