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