Language

PropertyModel Class

Definition

Represents a property on a vector store record. This is an internal support type meant for use by providers only and not by applications.

public ref class PropertyModel abstract
[System.Diagnostics.CodeAnalysis.Experimental("MEVD9001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public abstract class PropertyModel
public abstract class PropertyModel
[<System.Diagnostics.CodeAnalysis.Experimental("MEVD9001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type PropertyModel = class
type PropertyModel = class
Public MustInherit Class PropertyModel
Inheritance
PropertyModel
Derived
Attributes

Constructors

Name Description
PropertyModel(String, Type)

Represents a property on a vector store record. This is an internal support type meant for use by providers only and not by applications.

Properties

Name Description
IsNullable

Gets a value indicating whether the property type is nullable.

ModelName

Gets or sets the model name of the property.

PropertyInfo

Gets or sets the reflection PropertyInfo for the .NET property.

ProviderAnnotations

Gets or sets a dictionary of provider-specific annotations for this property.

StorageName

Gets or sets the storage name of the property.

Type

Gets or sets the CLR type of the property.

Methods

Name Description
GetValue<T>(Object)

Reads the property from the given record.

GetValueAsObject(Object)

Reads the property from the given record, returning the value as an Object.

SetValue<T>(Object, T)

Writes the property from the given record.

SetValueAsObject(Object, Object)

Writes the property from the given record, accepting the value to write as an Object.

Applies to