2 writes to Name
Microsoft.Extensions.VectorData.Abstractions (2)
RecordDefinition\VectorStoreProperty.cs (2)
30
Name
= name;
36
Name
= source.Name;
17 references to Name
Microsoft.Extensions.VectorData.Abstractions (7)
ProviderServices\CollectionModelBuilder.cs (3)
105
definitionByName[p.
Name
] = p;
230
string propertyName = clrProperty?.Name ?? definitionProperty?.
Name
?? throw new UnreachableException();
559
var 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)
36
Name = 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)
679
if (definitionProperties.Any(p => p.
Name
== nameof(FilterRecord.Bool)))
684
if (definitionProperties.Any(p => p.
Name
== nameof(FilterRecord.StringArray)))
689
if (definitionProperties.Any(p => p.
Name
== nameof(FilterRecord.StringList)))
704
if (definitionProperties.Any(p => p.
Name
== nameof(FilterRecord.Bool)))
709
if (definitionProperties.Any(p => p.
Name
== nameof(FilterRecord.StringArray)))
714
if (definitionProperties.Any(p => p.
Name
== nameof(FilterRecord.StringList)))
TypeTests\DataTypeTests.cs (4)
273
var propertyInfo = typeof(TRecord).GetProperty(property.
Name
)
274
?? throw new InvalidOperationException($"Property '{property.
Name
}' not found on record type '{typeof(TRecord).Name}'.");
320
record[property.
Name
] = GenerateEmptyProperty(property);
330
null => throw new InvalidOperationException($"Property '{property.
Name
}' has no type defined."),