Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dotnet/efcore
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 09bef5a826042c03c206766f125d0bcab91d07b8
Choose a base ref
..
head repository: dotnet/efcore
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d0d501bc4bbe69ee5834011759e6ec88a40b50dd
Choose a head ref
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/EFCore.Cosmos/Metadata/Conventions/CosmosRelationshipDiscoveryConvention.cs
Original file line number Diff line number Diff line change
@@ -40,6 +40,8 @@ public CosmosRelationshipDiscoveryConvention(ProviderConventionSetBuilderDepende
/// <param name="model"> The model. </param>
/// <returns> <see langword="true"/> if the given entity type should be owned. </returns>
public static bool ShouldBeOwnedType(Type targetType, IConventionModel model)
=> !targetType.IsGenericType || targetType.GetInterface("IEnumerable`1") == null;
=> !targetType.IsGenericType
|| targetType == typeof(Dictionary<string, object>)
|| targetType.GetInterface(typeof(IEnumerable<>).Name) == null;
}
}