Skip to content

Commit

Permalink
removed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
morrisjdev committed Feb 15, 2020
1 parent 87f6724 commit 4c4393f
Show file tree
Hide file tree
Showing 28 changed files with 119 additions and 714 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,10 @@
// ReSharper disable once CheckNamespace
namespace FileContextCore.Internal
{
/// <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 static class FileContextLoggerExtensions
{
/// <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 static void TransactionIgnoredWarning(
[NotNull] this IDiagnosticsLogger<DbLoggerCategory.Database.Transaction> diagnostics)
{
Expand All @@ -47,12 +37,7 @@ public static void TransactionIgnoredWarning(
}
}

/// <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 static void ChangesSaved(
[NotNull] this IDiagnosticsLogger<DbLoggerCategory.Update> diagnostics,
[NotNull] IEnumerable<IUpdateEntry> entries,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,13 @@

namespace FileContextCore.Diagnostics.Internal
{
/// <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 class FileContextLoggingDefinitions : LoggingDefinitions
{
/// <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 EventDefinitionBase LogSavedChanges;

/// <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 EventDefinitionBase LogTransactionsNotSupported;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,72 +14,37 @@

namespace FileContextCore.Infrastructure.Internal
{
/// <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 class FileContextOptionsExtension : IDbContextOptionsExtension
{
private FileContextDatabaseRoot _databaseRoot;
private DbContextOptionsExtensionInfo _info;
private FileContextScopedOptions _options;

/// <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);
}

/// <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 virtual DbContextOptionsExtensionInfo Info
=> _info ??= new ExtensionInfo(this);

/// <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 virtual FileContextOptionsExtension Clone() => new FileContextOptionsExtension(this);

/// <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 virtual FileContextScopedOptions Options => _options;

/// <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 virtual FileContextOptionsExtension WithCustomOptions(string databaseName, string serializer, string fileManager, string location)
{
var clone = Clone();
Expand All @@ -91,20 +56,10 @@ public virtual FileContextOptionsExtension WithCustomOptions(string databaseName
return clone;
}

/// <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 virtual FileContextDatabaseRoot DatabaseRoot => _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 virtual FileContextOptionsExtension WithDatabaseRoot([NotNull] FileContextDatabaseRoot databaseRoot)
{
var clone = Clone();
Expand All @@ -114,23 +69,13 @@ public virtual FileContextOptionsExtension WithDatabaseRoot([NotNull] FileContex
return clone;
}

/// <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 virtual void ApplyServices(IServiceCollection services)
{
services.AddEntityFrameworkFileContextDatabase();
}

/// <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 virtual void Validate(IDbContextOptions options)
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,7 @@ namespace FileContextCore.Infrastructure.Internal
/// </summary>
public class FileContextSingletonOptions : IFileContextSingletonOptions
{
/// <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 virtual void Initialize(IDbContextOptions options)
{
var inMemoryOptions = options.FindExtension<FileContextOptionsExtension>();
Expand All @@ -45,12 +40,7 @@ public virtual void Initialize(IDbContextOptions options)
}
}

/// <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 virtual void Validate(IDbContextOptions options)
{
var inMemoryOptions = options.FindExtension<FileContextOptionsExtension>();
Expand All @@ -65,12 +55,7 @@ public virtual void Validate(IDbContextOptions options)
}
}

/// <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 virtual FileContextDatabaseRoot DatabaseRoot { get; private set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,7 @@ namespace FileContextCore.Infrastructure.Internal
/// </summary>
public interface IFileContextSingletonOptions : ISingletonOptions
{
/// <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>

FileContextDatabaseRoot DatabaseRoot { get; }
}
}
14 changes: 2 additions & 12 deletions FileContextCore/Properties/FileContextStrings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 3 additions & 18 deletions FileContextCore/Query/Internal/FileContextQueryContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,16 @@

namespace FileContextCore.Query.Internal
{
/// <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 class FileContextQueryContext : QueryContext
{
/// <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 FileContextQueryContext([NotNull] QueryContextDependencies dependencies,
[NotNull] IFileContextStore store)
: base(dependencies)
=> Store = store;

/// <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 virtual IFileContextStore Store { get; }
}
}
14 changes: 2 additions & 12 deletions FileContextCore/Query/Internal/FileContextQueryContextFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@ public class FileContextQueryContextFactory : IQueryContextFactory
private readonly IFileContextStore _store;
private readonly QueryContextDependencies _dependencies;

/// <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 FileContextQueryContextFactory(
[NotNull] QueryContextDependencies dependencies,
[NotNull] IFileContextStoreCache storeCache,
Expand All @@ -46,12 +41,7 @@ public FileContextQueryContextFactory(
_dependencies = dependencies;
}

/// <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 virtual QueryContext Create()
=> new FileContextQueryContext(_dependencies, _store);
}
Expand Down
Loading

0 comments on commit 4c4393f

Please sign in to comment.