本文整理汇总了C#中NHibernate.Mapping.ByCode.ExplicitlyDeclaredModel.IsEntity方法的典型用法代码示例。如果您正苦于以下问题:C# ExplicitlyDeclaredModel.IsEntity方法的具体用法?C# ExplicitlyDeclaredModel.IsEntity怎么用?C# ExplicitlyDeclaredModel.IsEntity使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NHibernate.Mapping.ByCode.ExplicitlyDeclaredModel
的用法示例。
在下文中一共展示了ExplicitlyDeclaredModel.IsEntity方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: WhenRegisterJoinedSubclassWithNoRootThenCanAskForIsEntity
public void WhenRegisterJoinedSubclassWithNoRootThenCanAskForIsEntity()
{
var inspector = new ExplicitlyDeclaredModel();
inspector.AddAsTablePerClassEntity(typeof(Inherited1));
inspector.IsEntity(typeof(Inherited1)).Should().Be.True();
}
示例2: WhenRegisteredAsJoinedSubclassThenIsEntity
public void WhenRegisteredAsJoinedSubclassThenIsEntity()
{
var inspector = new ExplicitlyDeclaredModel();
inspector.AddAsRootEntity(typeof(MyClass));
inspector.AddAsTablePerClassEntity(typeof(Inherited1));
inspector.IsEntity(typeof(Inherited1)).Should().Be.True();
}
示例3: WhenRegisteredAsSubclassThenIsEntity
public void WhenRegisteredAsSubclassThenIsEntity()
{
var inspector = new ExplicitlyDeclaredModel();
inspector.AddAsRootEntity(typeof(MyClass));
inspector.AddAsTablePerClassHierarchyEntity(typeof(Inherited1));
Assert.That(inspector.IsEntity(typeof(Inherited1)), Is.True);
}
示例4: WhenRegisteredAsRootThenIsEntity
public void WhenRegisteredAsRootThenIsEntity()
{
var inspector = new ExplicitlyDeclaredModel();
inspector.AddAsRootEntity(typeof(MyClass));
inspector.IsEntity(typeof(MyClass)).Should().Be.True();
}
示例5: WhenRegisteredAsRootThenIsEntity
public void WhenRegisteredAsRootThenIsEntity()
{
var inspector = new ExplicitlyDeclaredModel();
inspector.AddAsRootEntity(typeof(MyClass));
Assert.That(inspector.IsEntity(typeof(MyClass)), Is.True);
}