The following code fails to compile:
[VectorStoreKey(StorageName = "name", IsAutoGenerated = true)]
public Guid Key { get; set; }
Because the IsAutoGenerated is bool?:
|
public bool? IsAutoGenerated { get; set; } |
Which in C# maps to System.Nullable<bool> (a struct) and can't be set at compile time.
Could we make it just a bool like what it's mapped to at the end?
|
public bool IsAutoGenerated { get; set; } |
Context: https://github.com/dotnet/extensions/pull/7423/changes#r2974567816
cc @roji
The following code fails to compile:
Because the
IsAutoGeneratedisbool?:semantic-kernel/dotnet/src/VectorData/VectorData.Abstractions/RecordAttributes/VectorStoreKeyAttribute.cs
Line 30 in 082e28e
Which in C# maps to
System.Nullable<bool>(a struct) and can't be set at compile time.Could we make it just a
boollike what it's mapped to at the end?semantic-kernel/dotnet/src/VectorData/VectorData.Abstractions/ProviderServices/KeyPropertyModel.cs
Line 18 in 082e28e
Context: https://github.com/dotnet/extensions/pull/7423/changes#r2974567816
cc @roji