Show / Hide Table of Contents

Class ObjectExtensionInfo

Inheritance
object
ObjectExtensionInfo
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.ObjectExtending
Assembly: Volo.Abp.ObjectExtending.dll
Syntax
public class ObjectExtensionInfo

Constructors

ObjectExtensionInfo(Type)

Declaration
public ObjectExtensionInfo(Type type)
Parameters
Type Name Description
Type type

Properties

Configuration

Declaration
public ConcurrentDictionary<object, object> Configuration { get; }
Property Value
Type Description
ConcurrentDictionary<object, object>

Properties

Declaration
protected ConcurrentDictionary<string, ObjectExtensionPropertyInfo> Properties { get; }
Property Value
Type Description
ConcurrentDictionary<string, ObjectExtensionPropertyInfo>

Type

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

Validators

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

Methods

AddOrUpdateProperty(Type, string, Action<ObjectExtensionPropertyInfo>?)

Declaration
public virtual ObjectExtensionInfo AddOrUpdateProperty(Type propertyType, string propertyName, Action<ObjectExtensionPropertyInfo>? configureAction = null)
Parameters
Type Name Description
Type propertyType
string propertyName
Action<ObjectExtensionPropertyInfo> configureAction
Returns
Type Description
ObjectExtensionInfo

AddOrUpdateProperty<TProperty>(string, Action<ObjectExtensionPropertyInfo>?)

Declaration
public virtual ObjectExtensionInfo AddOrUpdateProperty<TProperty>(string propertyName, Action<ObjectExtensionPropertyInfo>? configureAction = null)
Parameters
Type Name Description
string propertyName
Action<ObjectExtensionPropertyInfo> configureAction
Returns
Type Description
ObjectExtensionInfo
Type Parameters
Name Description
TProperty

GetProperties()

Declaration
public virtual ImmutableList<ObjectExtensionPropertyInfo> GetProperties()
Returns
Type Description
ImmutableList<ObjectExtensionPropertyInfo>

GetPropertyOrNull(string)

Declaration
public virtual ObjectExtensionPropertyInfo? GetPropertyOrNull(string propertyName)
Parameters
Type Name Description
string propertyName
Returns
Type Description
ObjectExtensionPropertyInfo

HasProperty(string)

Declaration
public virtual bool HasProperty(string propertyName)
Parameters
Type Name Description
string propertyName
Returns
Type Description
bool

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform