Click or drag to resize

EntitySchema<TEntity>.AddProperty<T> Method

Namespace:  AGI.Foundation.Tracking
Assembly:  AGI.Foundation.Tracking (in AGI.Foundation.Tracking.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public void AddProperty<T>(
	string name,
	EntityTransactedPropertyGetter<TEntity, T> transactedPropertyGetter
)

Parameters

name
Type: System.String
The name of the property.
transactedPropertyGetter
Type: AGI.Foundation.Tracking.EntityTransactedPropertyGetter<TEntity, T>
A callback to use to obtain the TransactedProperty<T>.

Type Parameters

T
The type of the property.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when name or transactedPropertyGetter is null.
ArgumentException Thrown when name is an empty string, or if a property with the same name already exists in the schema.
See Also