Show / Hide Table of Contents

Class ObjectExtensionPropertyInfo

Inheritance
System.Object
ObjectExtensionPropertyInfo
Implements
IHasNameWithLocalizableDisplayName
IBasicObjectExtensionPropertyInfo
Namespace: Volo.Abp.ObjectExtending
Assembly: Volo.Abp.ObjectExtending.dll
Syntax
public class ObjectExtensionPropertyInfo : object, IHasNameWithLocalizableDisplayName, IBasicObjectExtensionPropertyInfo

Constructors

ObjectExtensionPropertyInfo(ObjectExtensionInfo, Type, String)

Declaration
public ObjectExtensionPropertyInfo(ObjectExtensionInfo objectExtension, Type type, string name)
Parameters
Type Name Description
ObjectExtensionInfo objectExtension
Type type
System.String name

Properties

Attributes

Declaration
public List<Attribute> Attributes { get; }
Property Value
Type Description
List<Attribute>

CheckPairDefinitionOnMapping

Indicates whether to check the other side of the object mapping if it explicitly defines the property. This property is used in;

  • .MapExtraPropertiesTo() extension method.
  • .MapExtraProperties() configuration for the AutoMapper.

It this is true, these methods check if the mapping object has defined the property using the ObjectExtensionManager.

Default: null (unspecified, uses the default logic).

Declaration
public bool? CheckPairDefinitionOnMapping { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

Configuration

Declaration
public Dictionary<object, object> Configuration { get; }
Property Value
Type Description
Dictionary<System.Object, System.Object>

DefaultValue

Uses as the default value if DefaultValueFactory was not set.

Declaration
public object DefaultValue { get; set; }
Property Value
Type Description
System.Object

DefaultValueFactory

Used with the first priority to create the default value for the property. Uses to the DefaultValue if this was not set.

Declaration
public Func<object> DefaultValueFactory { get; set; }
Property Value
Type Description
Func<System.Object>

DisplayName

Declaration
public ILocalizableString DisplayName { get; set; }
Property Value
Type Description
ILocalizableString

Name

Declaration
public string Name { get; }
Property Value
Type Description
System.String

ObjectExtension

Declaration
public ObjectExtensionInfo ObjectExtension { get; }
Property Value
Type Description
ObjectExtensionInfo

Type

Declaration
public Type Type { get; }
Property Value
Type Description
Type

Validators

Declaration
public List<Action<ObjectExtensionPropertyValidationContext>> Validators { get; }
Property Value
Type Description
List<Action<ObjectExtensionPropertyValidationContext>>

Methods

GetDefaultValue()

Declaration
public object GetDefaultValue()
Returns
Type Description
System.Object

Implements

IHasNameWithLocalizableDisplayName
IBasicObjectExtensionPropertyInfo

Extension Methods

ObjectExtensionPropertyInfoExtensions.GetValidationAttributes(ObjectExtensionPropertyInfo)
AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft