diff --git a/src/EFCore.Relational/Design/AnnotationCodeGenerator.cs b/src/EFCore.Relational/Design/AnnotationCodeGenerator.cs
index 22ac9ad57c9..b35cd851d77 100644
--- a/src/EFCore.Relational/Design/AnnotationCodeGenerator.cs
+++ b/src/EFCore.Relational/Design/AnnotationCodeGenerator.cs
@@ -79,7 +79,8 @@ public virtual void RemoveAnnotationsHandledByConventions(IModel model, IDiction
///
public virtual void RemoveAnnotationsHandledByConventions(
- IEntityType entityType, IDictionary annotations)
+ IEntityType entityType,
+ IDictionary annotations)
{
annotations.Remove(RelationalAnnotationNames.IsTableExcludedFromMigrations);
@@ -88,7 +89,8 @@ public virtual void RemoveAnnotationsHandledByConventions(
///
public virtual void RemoveAnnotationsHandledByConventions(
- IProperty property, IDictionary annotations)
+ IProperty property,
+ IDictionary annotations)
{
var columnName = property.GetColumnName();
if (columnName == property.Name)
@@ -105,7 +107,8 @@ public virtual void RemoveAnnotationsHandledByConventions(IKey key, IDictionary<
///
public virtual void RemoveAnnotationsHandledByConventions(
- IForeignKey foreignKey, IDictionary annotations)
+ IForeignKey foreignKey,
+ IDictionary annotations)
=> RemoveConventionalAnnotationsHelper(foreignKey, annotations, IsHandledByConvention);
///
@@ -114,7 +117,8 @@ public virtual void RemoveAnnotationsHandledByConventions(IIndex index, IDiction
///
public virtual IReadOnlyList GenerateFluentApiCalls(
- IModel model, IDictionary annotations)
+ IModel model,
+ IDictionary annotations)
{
var methodCallCodeFragments = new List();
@@ -129,7 +133,8 @@ public virtual IReadOnlyList GenerateFluentApiCalls(
///
public virtual IReadOnlyList GenerateFluentApiCalls(
- IEntityType entityType, IDictionary annotations)
+ IEntityType entityType,
+ IDictionary annotations)
{
var methodCallCodeFragments = new List();
@@ -144,7 +149,8 @@ public virtual IReadOnlyList GenerateFluentApiCalls(
///
public virtual IReadOnlyList GenerateFluentApiCalls(
- IProperty property, IDictionary annotations)
+ IProperty property,
+ IDictionary annotations)
{
var methodCallCodeFragments = new List();
@@ -167,16 +173,16 @@ public virtual IReadOnlyList GenerateFluentApiCalls(
{
methodCallCodeFragments.Add(
computedColumnSql?.Length == 0
- ? new MethodCallCodeFragment(
- nameof(RelationalPropertyBuilderExtensions.HasComputedColumnSql))
- : TryGetAndRemove(annotations, RelationalAnnotationNames.IsStored, out bool isStored)
? new MethodCallCodeFragment(
- nameof(RelationalPropertyBuilderExtensions.HasComputedColumnSql),
- computedColumnSql,
- isStored)
- : new MethodCallCodeFragment(
- nameof(RelationalPropertyBuilderExtensions.HasComputedColumnSql),
- computedColumnSql));
+ nameof(RelationalPropertyBuilderExtensions.HasComputedColumnSql))
+ : TryGetAndRemove(annotations, RelationalAnnotationNames.IsStored, out bool isStored)
+ ? new MethodCallCodeFragment(
+ nameof(RelationalPropertyBuilderExtensions.HasComputedColumnSql),
+ computedColumnSql,
+ isStored)
+ : new MethodCallCodeFragment(
+ nameof(RelationalPropertyBuilderExtensions.HasComputedColumnSql),
+ computedColumnSql));
}
GenerateSimpleFluentApiCall(
@@ -199,7 +205,8 @@ public virtual IReadOnlyList GenerateFluentApiCalls(
///
public virtual IReadOnlyList GenerateFluentApiCalls(
- IKey key, IDictionary annotations)
+ IKey key,
+ IDictionary annotations)
{
var methodCallCodeFragments = new List();
@@ -214,7 +221,8 @@ public virtual IReadOnlyList GenerateFluentApiCalls(
///
public virtual IReadOnlyList GenerateFluentApiCalls(
- IForeignKey navigation, IDictionary annotations)
+ IForeignKey navigation,
+ IDictionary annotations)
{
var methodCallCodeFragments = new List();
@@ -229,7 +237,8 @@ public virtual IReadOnlyList GenerateFluentApiCalls(
///
public virtual IReadOnlyList GenerateFluentApiCalls(
- INavigation navigation, IDictionary annotations)
+ INavigation navigation,
+ IDictionary annotations)
{
var methodCallCodeFragments = new List();
@@ -240,7 +249,8 @@ public virtual IReadOnlyList GenerateFluentApiCalls(
///
public virtual IReadOnlyList GenerateFluentApiCalls(
- ISkipNavigation navigation, IDictionary annotations)
+ ISkipNavigation navigation,
+ IDictionary annotations)
{
var methodCallCodeFragments = new List();
@@ -251,7 +261,8 @@ public virtual IReadOnlyList GenerateFluentApiCalls(
///
public virtual IReadOnlyList GenerateFluentApiCalls(
- IIndex index, IDictionary annotations)
+ IIndex index,
+ IDictionary annotations)
{
var methodCallCodeFragments = new List();
@@ -270,7 +281,8 @@ public virtual IReadOnlyList GenerateFluentApiCalls(
///
public virtual IReadOnlyList GenerateDataAnnotationAttributes(
- IEntityType entityType, IDictionary annotations)
+ IEntityType entityType,
+ IDictionary annotations)
{
var attributeCodeFragments = new List();
@@ -281,7 +293,8 @@ public virtual IReadOnlyList GenerateDataAnnotationAttrib
///
public virtual IReadOnlyList GenerateDataAnnotationAttributes(
- IProperty property, IDictionary annotations)
+ IProperty property,
+ IDictionary annotations)
{
var attributeCodeFragments = new List();
@@ -312,8 +325,8 @@ public virtual IReadOnlyList GenerateDataAnnotationAttrib
/// The .
/// The .
///
- /// if the annotation is handled by convention;
- /// if code must be generated.
+ /// if the annotation is handled by convention;
+ /// if code must be generated.
///
protected virtual bool IsHandledByConvention([NotNull] IModel model, [NotNull] IAnnotation annotation)
{
diff --git a/src/EFCore.Relational/Design/AttributeCodeFragment.cs b/src/EFCore.Relational/Design/AttributeCodeFragment.cs
index e74f9049a08..02b0d9bc100 100644
--- a/src/EFCore.Relational/Design/AttributeCodeFragment.cs
+++ b/src/EFCore.Relational/Design/AttributeCodeFragment.cs
@@ -39,6 +39,7 @@ public AttributeCodeFragment([NotNull] Type type, [NotNull] params object[] argu
/// Gets the method call's arguments.
///
/// The method call's arguments.
- public virtual IReadOnlyList