예제 #1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="CoreOptionsExtension" /> class with the same options as an
 ///     existing instance.
 /// </summary>
 /// <param name="copyFrom"> The <see cref="CoreOptionsExtension" /> to copy options from. </param>
 public CoreOptionsExtension([NotNull] CoreOptionsExtension copyFrom)
 {
     _internalServiceProvider = copyFrom.InternalServiceProvider;
     _model         = copyFrom.Model;
     _loggerFactory = copyFrom.LoggerFactory;
     _memoryCache   = copyFrom.MemoryCache;
     _isSensitiveDataLoggingEnabled = copyFrom.IsSensitiveDataLoggingEnabled;
 }
예제 #2
0
 /// <summary>
 ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
 ///     directly from your code. This API may change or be removed in future releases.
 /// </summary>
 public CoreOptionsExtension([NotNull] CoreOptionsExtension copyFrom)
 {
     _internalServiceProvider = copyFrom.InternalServiceProvider;
     _model         = copyFrom.Model;
     _loggerFactory = copyFrom.LoggerFactory;
     _memoryCache   = copyFrom.MemoryCache;
     _isSensitiveDataLoggingEnabled = copyFrom.IsSensitiveDataLoggingEnabled;
     _warningsConfiguration         = copyFrom.WarningsConfiguration;
     _queryTrackingBehavior         = copyFrom.QueryTrackingBehavior;
 }
예제 #3
0
        /// <summary>
        ///     This API supports the Entity Framework Core infrastructure and is not intended to be used
        ///     directly from your code. This API may change or be removed in future releases.
        /// </summary>
        public CoreOptionsExtension([NotNull] CoreOptionsExtension copyFrom)
        {
            _internalServiceProvider = copyFrom.InternalServiceProvider;
            _model         = copyFrom.Model;
            _loggerFactory = copyFrom.LoggerFactory;
            _memoryCache   = copyFrom.MemoryCache;
            _isSensitiveDataLoggingEnabled = copyFrom.IsSensitiveDataLoggingEnabled;
            _warningsConfiguration         = copyFrom.WarningsConfiguration;
            _queryTrackingBehavior         = copyFrom.QueryTrackingBehavior;

            if (copyFrom._replacedServices != null)
            {
                _replacedServices = new Dictionary <Type, Type>(copyFrom._replacedServices);
            }
        }
예제 #4
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="CoreOptionsExtension" /> class with the same options as an
 ///     existing instance.
 /// </summary>
 /// <param name="copyFrom"> The <see cref="CoreOptionsExtension" /> to copy options from. </param>
 public CoreOptionsExtension([NotNull] CoreOptionsExtension copyFrom)
 {
     _isSensitiveDataLoggingEnabled = copyFrom.IsSensitiveDataLoggingEnabled;
     _model = copyFrom.Model;
 }