// copy constructor public AbpGlobalFiltersOptionsExtension(AbpGlobalFiltersOptionsExtension other, ICurrentTenantAccessor currentTenantAccessor) { _info = other._info; DataFilter = other.DataFilter; CurrentTenantAccessor = currentTenantAccessor ?? other.CurrentTenantAccessor; _abpQueryFiltersDisabled = other._abpQueryFiltersDisabled; }
public override bool ShouldUseSameServiceProvider(DbContextOptionsExtensionInfo other) { if (other is not DbHintFormatterExtensionInfo otherInfo) { return(false); } return(otherInfo.Extension.DbHintFormatterType == Extension.DbHintFormatterType); }
public override bool ShouldUseSameServiceProvider(DbContextOptionsExtensionInfo other) => other is ExtensionInfo;
public override bool ShouldUseSameServiceProvider(DbContextOptionsExtensionInfo other) { return(true); }
public DemoDbContextOptionsExtension() { Info = new DemoDbContextOptionsExtensionInfo(this); }
/// <summary> /// Returns a value indicating whether all of the options used in <see cref="GetServiceProviderHashCode" /> /// are the same as in the given extension. /// </summary> /// <remarks> /// See <see href="https://aka.ms/efcore-docs-providers">Implementation of database providers and extensions</see> /// for more information and examples. /// </remarks> /// <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);
public override bool ShouldUseSameServiceProvider(DbContextOptionsExtensionInfo other) { return(string.Equals(LogFragment, other.LogFragment, StringComparison.Ordinal)); }
public EsiurExtensionOptions(EntityStore store) { _info = new ExtensionInfo(this); _store = store; }
public SnakeCaseExtension() { Info = new ExtensionInfo(this); }
public override bool ShouldUseSameServiceProvider(DbContextOptionsExtensionInfo other) { //Not really sure if this should be true or false //Trying false for now since we are returning 0 for the hash code return(false); }
public override bool ShouldUseSameServiceProvider(DbContextOptionsExtensionInfo other) { return(other is ValueObjectDbContextOptionsExtensionInfo otherInfo && _extension.ValueObjectValueConverterSettings == otherInfo._extension.ValueObjectValueConverterSettings); }