1 write to Options
Microsoft.Extensions.VectorData.Abstractions (1)
ProviderServices\CollectionModelBuilder.cs (1)
72
Options
= options;
9 references to Options
Microsoft.Extensions.VectorData.Abstractions (9)
ProviderServices\CollectionJsonModelBuilder.cs (3)
73
var keyPropertyWithReservedName =
Options
.ReservedKeyStorageName is not null && property is KeyPropertyModel;
78
if (keyPropertyWithReservedName && jsonPropertyNameAttribute.Name !=
Options
.ReservedKeyStorageName)
80
throw new InvalidOperationException($"The key property for your provider must always have the reserved name '{
Options
.ReservedKeyStorageName}' and cannot be changed.");
ProviderServices\CollectionModelBuilder.cs (6)
141
if (!
Options
.UsesExternalSerializer && recordType.GetConstructor(Type.EmptyTypes) is null)
344
if (property is KeyPropertyModel &&
Options
.ReservedKeyStorageName is not null)
347
property.StorageName =
Options
.ReservedKeyStorageName;
360
if (
Options
.UsesExternalSerializer && property.PropertyInfo is not null)
486
if (
Options
.RequiresAtLeastOneVector && VectorProperties.Count == 0)
491
if (!
Options
.SupportsMultipleVectors && VectorProperties.Count > 1)