Example #1
0
 // copy constructor
 public AbpGlobalFiltersOptionsExtension(AbpGlobalFiltersOptionsExtension other, ICurrentTenantAccessor currentTenantAccessor)
 {
     _info                    = other._info;
     DataFilter               = other.DataFilter;
     CurrentTenantAccessor    = currentTenantAccessor ?? other.CurrentTenantAccessor;
     _abpQueryFiltersDisabled = other._abpQueryFiltersDisabled;
 }
Example #2
0
    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;
Example #4
0
 public override bool ShouldUseSameServiceProvider(DbContextOptionsExtensionInfo other)
 {
     return(true);
 }
Example #5
0
 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));
 }
Example #8
0
 public EsiurExtensionOptions(EntityStore store)
 {
     _info  = new ExtensionInfo(this);
     _store = store;
 }
Example #9
0
 public SnakeCaseExtension()
 {
     Info = new ExtensionInfo(this);
 }
Example #10
0
 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);
 }