2 writes to Name
Microsoft.Extensions.VectorData.Abstractions (2)
RecordDefinition\VectorStoreProperty.cs (2)
30Name = name; 36Name = source.Name;
17 references to Name
Microsoft.Extensions.VectorData.Abstractions (7)
ProviderServices\CollectionModelBuilder.cs (3)
105definitionByName[p.Name] = p; 230string propertyName = clrProperty?.Name ?? definitionProperty?.Name ?? throw new UnreachableException(); 559var userRequestedEmbeddingType = definition?.Properties.OfType<VectorStoreVectorProperty>().SingleOrDefault(p => p.Name == vectorProperty.ModelName)?.EmbeddingType;
ProviderServices\VectorDataStrings.cs (1)
53=> $"Property '{property.Name}' has no type specified in its definition, and does not have a corresponding .NET property. Specify the type on the definition.";
RecordDefinition\VectorStoreProperty.cs (1)
36Name = source.Name;
RecordDefinition\VectorStoreVectorProperty.cs (1)
100=> new(Name, Type ?? throw new InvalidOperationException(VectorDataStrings.MissingTypeOnPropertyDefinition(this)))
RecordDefinition\VectorStoreVectorProperty{TInput}.cs (1)
34=> new VectorPropertyModel<TInput>(Name)
Microsoft.Extensions.VectorData.ConformanceTests (10)
FilterTests.cs (6)
679if (definitionProperties.Any(p => p.Name == nameof(FilterRecord.Bool))) 684if (definitionProperties.Any(p => p.Name == nameof(FilterRecord.StringArray))) 689if (definitionProperties.Any(p => p.Name == nameof(FilterRecord.StringList))) 704if (definitionProperties.Any(p => p.Name == nameof(FilterRecord.Bool))) 709if (definitionProperties.Any(p => p.Name == nameof(FilterRecord.StringArray))) 714if (definitionProperties.Any(p => p.Name == nameof(FilterRecord.StringList)))
TypeTests\DataTypeTests.cs (4)
273var propertyInfo = typeof(TRecord).GetProperty(property.Name) 274?? throw new InvalidOperationException($"Property '{property.Name}' not found on record type '{typeof(TRecord).Name}'."); 320record[property.Name] = GenerateEmptyProperty(property); 330null => throw new InvalidOperationException($"Property '{property.Name}' has no type defined."),