Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove existing items before adding. #14308

Merged
merged 1 commit into from
Oct 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public static OpenIddictApplication ToEntity(this OpenIddictApplicationModel mod

foreach (var extraProperty in model.ExtraProperties)
{
entity.ExtraProperties.Remove(extraProperty.Key);
entity.ExtraProperties.Add(extraProperty.Key, extraProperty.Value);
}

Expand Down Expand Up @@ -86,6 +87,7 @@ public static OpenIddictApplicationModel ToModel(this OpenIddictApplication enti

foreach (var extraProperty in entity.ExtraProperties)
{
model.ExtraProperties.Remove(extraProperty.Key);
model.ExtraProperties.Add(extraProperty.Key, extraProperty.Value);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public static OpenIddictAuthorization ToEntity(this OpenIddictAuthorizationModel

foreach (var extraProperty in model.ExtraProperties)
{
entity.ExtraProperties.Remove(extraProperty.Key);
entity.ExtraProperties.Add(extraProperty.Key, extraProperty.Value);
}

Expand Down Expand Up @@ -68,6 +69,7 @@ public static OpenIddictAuthorizationModel ToModel(this OpenIddictAuthorization

foreach (var extraProperty in entity.ExtraProperties)
{
model.ExtraProperties.Remove(extraProperty.Key);
model.ExtraProperties.Add(extraProperty.Key, extraProperty.Value);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public static OpenIddictScope ToEntity(this OpenIddictScopeModel model)

foreach (var extraProperty in model.ExtraProperties)
{
entity.ExtraProperties.Remove(extraProperty.Key);
entity.ExtraProperties.Add(extraProperty.Key, extraProperty.Value);
}

Expand Down Expand Up @@ -69,6 +70,7 @@ public static OpenIddictScopeModel ToModel(this OpenIddictScope entity)

foreach (var extraProperty in entity.ExtraProperties)
{
model.ExtraProperties.Remove(extraProperty.Key);
model.ExtraProperties.Add(extraProperty.Key, extraProperty.Value);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public static OpenIddictToken ToEntity(this OpenIddictTokenModel model)

foreach (var extraProperty in model.ExtraProperties)
{
entity.ExtraProperties.Remove(extraProperty.Key);
entity.ExtraProperties.Add(extraProperty.Key, extraProperty.Value);
}

Expand Down Expand Up @@ -81,6 +82,7 @@ public static OpenIddictTokenModel ToModel(this OpenIddictToken entity)

foreach (var extraProperty in entity.ExtraProperties)
{
model.ExtraProperties.Remove(extraProperty.Key);
model.ExtraProperties.Add(extraProperty.Key, extraProperty.Value);
}

Expand Down