Skip to content

Commit 9d5f736

Browse files
Copilotadamsitnik
andcommitted
Rename IsAutoGenerated_Core to IsAutoGeneratedNullable
Co-authored-by: adamsitnik <6011991+adamsitnik@users.noreply.github.com> Agent-Logs-Url: https://github.com/microsoft/semantic-kernel/sessions/8395b048-8a87-4e27-a49f-2a85a7619436
1 parent 1faad51 commit 9d5f736

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

dotnet/src/VectorData/VectorData.Abstractions/ProviderServices/CollectionModelBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ protected virtual void ProcessTypeProperties(Type type, VectorStoreCollectionDef
159159
if (clrProperty.GetCustomAttribute<VectorStoreKeyAttribute>() is { } keyAttribute)
160160
{
161161
var keyProperty = new KeyPropertyModel(clrProperty.Name, clrProperty.PropertyType);
162-
keyProperty.IsAutoGenerated = keyAttribute.IsAutoGenerated_Core ?? this.SupportsKeyAutoGeneration(keyProperty.Type);
162+
keyProperty.IsAutoGenerated = keyAttribute.IsAutoGeneratedNullable ?? this.SupportsKeyAutoGeneration(keyProperty.Type);
163163
this.KeyProperties.Add(keyProperty);
164164
storageName = keyAttribute.StorageName;
165165
property = keyProperty;

dotnet/src/VectorData/VectorData.Abstractions/RecordAttributes/VectorStoreKeyAttribute.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ public sealed class VectorStoreKeyAttribute : Attribute
2727
/// <remarks>
2828
/// The availability of auto-generated properties - as well as the .NET types supported for them - varies across provider implementations.
2929
/// This property is write-only by design so that it can be set at compile time as an attribute argument.
30-
/// To read the value, use <see cref="IsAutoGenerated_Core" />.
30+
/// To read the value, use <see cref="IsAutoGeneratedNullable" />.
3131
/// </remarks>
3232
public bool IsAutoGenerated
3333
{
34-
get => throw new InvalidOperationException("IsAutoGenerated is write-only. Read IsAutoGenerated_Core instead.");
35-
set => this.IsAutoGenerated_Core = value;
34+
get => throw new InvalidOperationException("IsAutoGenerated is write-only. Read IsAutoGeneratedNullable instead.");
35+
set => this.IsAutoGeneratedNullable = value;
3636
}
3737

3838
/// <summary>
3939
/// Gets whether this key property's value is auto-generated or not, or <see langword="null" /> if not set.
4040
/// </summary>
41-
internal bool? IsAutoGenerated_Core { get; private set; }
41+
internal bool? IsAutoGeneratedNullable { get; private set; }
4242
}

0 commit comments

Comments
 (0)