コード例 #1
0
 /// <summary>
 ///     Returns a value indicating whether all of the options used in <see cref="GetServiceProviderHashCode" />
 ///     are the same as in the given extension.
 /// </summary>
 /// <param name="other">The other extension.</param>
 /// <returns>A value indicating whether all of the options that require a new service provider are the same.</returns>
 public override bool ShouldUseSameServiceProvider(DbContextOptionsExtensionInfo other)
 => other is RelationalExtensionInfo;
コード例 #2
0
 /// <summary>
 ///     Returns a value indicating whether all of the options used in <see cref="GetServiceProviderHashCode"/>
 ///     are the same as in the given extension.
 /// </summary>
 /// <param name="other"> The other extension. </param>
 /// <returns> A value indicating whether all of the options that require a new service provider are the same. </returns>
 public abstract bool ShouldUseSameServiceProvider(DbContextOptionsExtensionInfo other);