本文整理汇总了C#中System.Data.Entity.Core.Metadata.Edm.EdmType.IsSubtypeOf方法的典型用法代码示例。如果您正苦于以下问题:C# EdmType.IsSubtypeOf方法的具体用法?C# EdmType.IsSubtypeOf怎么用?C# EdmType.IsSubtypeOf使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Data.Entity.Core.Metadata.Edm.EdmType
的用法示例。
在下文中一共展示了EdmType.IsSubtypeOf方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IsSubTypeOf
/// <summary>
/// determines if subType EdmType is a sub-type of superType EdmType.
/// </summary>
/// <param name="subEdmType"> </param>
/// <param name="superEdmType"> </param>
/// <returns> true if subType is a sub-type of superType, false otherwise </returns>
internal static bool IsSubTypeOf(EdmType subEdmType, EdmType superEdmType)
{
return subEdmType.IsSubtypeOf(superEdmType);
}
示例2: IsBaseTypeOf
/// <summary>
/// check to see if otherType is among the sub-types,
/// </summary>
/// <param name="otherType"></param>
/// <returns>
/// if otherType is among the sub-types, returns true,
/// otherwise returns false.
/// when othertype is same as the current type, return false.
/// </returns>
internal virtual bool IsBaseTypeOf(EdmType otherType)
{
if (otherType == null)
{
return false;
}
return otherType.IsSubtypeOf(this);
}