1 write to KeyType
Microsoft.Extensions.VectorData.Abstractions (1)
ProviderServices\CollectionModelBuilder.cs (1)
89
KeyType
= keyType;
6 references to KeyType
Microsoft.Extensions.VectorData.Abstractions (6)
ProviderServices\CollectionModelBuilder.cs (6)
598
/// Validates the key property. The default implementation validates that the collection's generic key type (<see cref="
KeyType
"/>)
599
/// corresponds to the key property type on the model, if <see cref="
KeyType
"/> was provided.
606
if (
KeyType
is not null &&
KeyType
!= typeof(object) &&
KeyType
!= keyProperty.Type)
609
$"The collection's generic key type is '{
KeyType
.Name}', but the key property '{keyProperty.ModelName}' has type '{keyProperty.Type.Name}'. " +