public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            FileContextScopedOptions optionsCompare = (FileContextScopedOptions)obj;

            return(optionsCompare.Serializer == Serializer && optionsCompare.DatabaseName == DatabaseName &&
                   optionsCompare.FileManager == FileManager && optionsCompare.Location == Location);
        }
예제 #2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            FileContextScopedOptions optionsCompare = (FileContextScopedOptions)obj;

            return(optionsCompare.DatabaseName == DatabaseName && optionsCompare.Location == Location &&
                   optionsCompare.Password == Password && optionsCompare.StoreManagerType == StoreManagerType);
        }
 /// <summary>
 ///     This is an internal API that supports the Entity Framework Core infrastructure and not subject to
 ///     the same compatibility standards as public APIs. It may be changed or removed without notice in
 ///     any release. You should only use it directly in your code with extreme caution and knowing that
 ///     doing so can result in application failures when updating to a new Entity Framework Core release.
 /// </summary>
 protected FileContextOptionsExtension([NotNull] FileContextOptionsExtension copyFrom)
 {
     _options      = (FileContextScopedOptions)copyFrom._options.Clone();
     _databaseRoot = copyFrom._databaseRoot;
 }
 /// <summary>
 ///     This is an internal API that supports the Entity Framework Core infrastructure and not subject to
 ///     the same compatibility standards as public APIs. It may be changed or removed without notice in
 ///     any release. You should only use it directly in your code with extreme caution and knowing that
 ///     doing so can result in application failures when updating to a new Entity Framework Core release.
 /// </summary>
 public FileContextOptionsExtension()
 {
     _options = new FileContextScopedOptions(null, null, null, null);
 }
예제 #5
0
 protected FileContextOptionsExtension([NotNull] FileContextOptionsExtension copyFrom)
 {
     _options      = copyFrom._options;
     _databaseRoot = copyFrom._databaseRoot;
 }
예제 #6
0
 public FileContextOptionsExtension()
 {
     _options = new FileContextScopedOptions(null, null, null,
                                             typeof(DefaultStoreManager), typeof(JSONSerializer), typeof(DefaultFileManager));
 }