Show / Hide Table of Contents

Class ExtensionPropertyConfiguration

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

Constructors

ExtensionPropertyConfiguration(EntityExtensionConfiguration, Type, String)

Declaration
public ExtensionPropertyConfiguration(EntityExtensionConfiguration entityExtensionConfiguration, Type type, string name)
Parameters
Type Name Description
EntityExtensionConfiguration entityExtensionConfiguration
Type type
System.String name

Properties

Api

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

Attributes

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

Configuration

Declaration
public Dictionary<string, object> Configuration { get; }
Property Value
Type Description
Dictionary<System.String, 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

Entity

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

EntityExtensionConfiguration

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

IsAvailableToClients

Single point to enable/disable this property for the clients (UI and API). If this is false, the configuration made in the UI and the Api properties are not used. Default: true.

Declaration
public bool IsAvailableToClients { get; set; }
Property Value
Type Description
System.Boolean

Name

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

Type

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

UI

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

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

ExtensionPropertyConfigurationExtensions.GetLocalizationResourceNameOrNull(ExtensionPropertyConfiguration)
ExtensionPropertyConfigurationExtensions.GetLocalizationResourceTypeOrNull(ExtensionPropertyConfiguration)
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