コード例 #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;
 }