本文整理汇总了C#中DbContext.IsOracle方法的典型用法代码示例。如果您正苦于以下问题:C# DbContext.IsOracle方法的具体用法?C# DbContext.IsOracle怎么用?C# DbContext.IsOracle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DbContext
的用法示例。
在下文中一共展示了DbContext.IsOracle方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DoesNotSupportElementMethod
/// <summary>
/// Returns true if the database does not support the DbExpression.Element() method - at least in the
/// context that we try to use it when applying a filter to a child entity.
/// Requires us to do an extra step of processing to apply those filters using SSpace.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public static bool DoesNotSupportElementMethod(DbContext context)
{
// Oracle may support this in newer versions (Database version 12c) but did not verify.
// (see https://community.oracle.com/message/10168766#10168766).
// If we find that newer versions do support what we need, we can recognize that here
// and return false to avoid the extra SSpace processing.
return context.IsOracle();
}