fixture.cs
来自「NHibernate NET开发者所需的」· CS 代码 · 共 34 行
CS
34 行
using System;
using System.Collections;
using NUnit.Framework;
namespace NHibernate.Test.NHSpecificTest.NH318
{
[TestFixture]
public class Fixture : TestCase
{
protected override string MappingsAssembly
{
get { return "NHibernate.Test"; }
}
protected override IList Mappings
{
get { return new string[] {"NHSpecificTest.NH318.Mappings.hbm.xml"}; }
}
[Test]
public void DeleteWithNotNullPropertySetToNull()
{
ISession session = OpenSession();
NotNullPropertyHolder a = new NotNullPropertyHolder();
a.NotNullProperty = "Value";
session.Save(a);
session.Flush();
a.NotNullProperty = null;
session.Delete(a);
session.Flush();
session.Close();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?