-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
51 changed files
with
1,237 additions
and
470 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/EFCore.Abstractions/Properties/AbstractionsStrings.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86 changes: 86 additions & 0 deletions
86
src/EFCore.Relational/Diagnostics/IndexInvalidPropertiesEventData.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
using JetBrains.Annotations; | ||
using Microsoft.EntityFrameworkCore.Metadata; | ||
|
||
namespace Microsoft.EntityFrameworkCore.Diagnostics | ||
{ | ||
/// <summary> | ||
/// A <see cref="DiagnosticSource" /> event payload class for the | ||
/// <see cref="RelationalEventId.IndexPropertiesMappedToNonOverlappingTables"/> event. | ||
/// </summary> | ||
public class IndexInvalidPropertiesEventData : EventData | ||
{ | ||
/// <summary> | ||
/// Constructs the event payload for the <see cref="CoreEventId.IndexDefinedOnIgnoredProperty" /> event. | ||
/// </summary> | ||
/// <param name="eventDefinition"> The event definition. </param> | ||
/// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> | ||
/// <param name="entityType"> The entity type on which the index is defined. </param> | ||
/// <param name="indexName"> The name of the index. </param> | ||
/// <param name="indexPropertyNames"> The names of the properties which define the index. </param> | ||
/// <param name="property1Name"> The name of the first property name which causes this event. </param> | ||
/// <param name="tablesMappedToProperty1"> The tables mapped to the first property. </param> | ||
/// <param name="property2Name"> The name of the second property name which causes this event. </param> | ||
/// <param name="tablesMappedToProperty2"> The tables mapped to the second property. </param> | ||
public IndexInvalidPropertiesEventData( | ||
[NotNull] EventDefinitionBase eventDefinition, | ||
[NotNull] Func<EventDefinitionBase, EventData, string> messageGenerator, | ||
[NotNull] IEntityType entityType, | ||
[CanBeNull] string indexName, | ||
[NotNull] List<string> indexPropertyNames, | ||
[NotNull] string property1Name, | ||
[NotNull] List<(string Table, string Schema)> tablesMappedToProperty1, | ||
[NotNull] string property2Name, | ||
[NotNull] List<(string Table, string Schema)> tablesMappedToProperty2) | ||
: base(eventDefinition, messageGenerator) | ||
{ | ||
EntityType = entityType; | ||
Name = indexName; | ||
PropertyNames = indexPropertyNames; | ||
Property1Name = property1Name; | ||
TablesMappedToProperty1 = tablesMappedToProperty1; | ||
Property2Name = property2Name; | ||
TablesMappedToProperty2 = tablesMappedToProperty2; | ||
} | ||
|
||
/// <summary> | ||
/// The entity type on which the index is defined. | ||
/// </summary> | ||
public virtual IEntityType EntityType { get; } | ||
|
||
/// <summary> | ||
/// The name of the index. | ||
/// </summary> | ||
public virtual string Name { get; } | ||
|
||
/// <summary> | ||
/// The list of properties which define the index. | ||
/// </summary> | ||
public virtual List<string> PropertyNames { get; } | ||
|
||
/// <summary> | ||
/// The name of the first property. | ||
/// </summary> | ||
public virtual string Property1Name { get; } | ||
|
||
/// <summary> | ||
/// The tables mapped to the first property. | ||
/// </summary> | ||
public virtual List<(string Table, string Schema)> TablesMappedToProperty1 { get; } | ||
|
||
/// <summary> | ||
/// The name of the second property. | ||
/// </summary> | ||
public virtual string Property2Name { get; } | ||
|
||
/// <summary> | ||
/// The tables mapped to the second property. | ||
/// </summary> | ||
public virtual List<(string Table, string Schema)> TablesMappedToProperty2 { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.