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
System.Type type

Properties

Configuration

Declaration
public ConcurrentDictionary<object, object> Configuration { get; }
Property Value
Type Description
System.Collections.Concurrent.ConcurrentDictionary<TKey, TValue><object, object>

Properties

Declaration
protected ConcurrentDictionary<string, ObjectExtensionPropertyInfo> Properties { get; }
Property Value
Type Description
System.Collections.Concurrent.ConcurrentDictionary<TKey, TValue><string, ObjectExtensionPropertyInfo>

Type

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

Validators

Declaration
public List<Action<ObjectExtensionValidationContext>> Validators { get; }
Property Value
Type Description
System.Collections.Generic.List<T><System.Action<T><ObjectExtensionValidationContext>>

Methods

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

Declaration
public virtual ObjectExtensionInfo AddOrUpdateProperty(Type propertyType, string propertyName, Action<ObjectExtensionPropertyInfo>? configureAction = null)
Parameters
Type Name Description
System.Type propertyType
string propertyName
System.Action<T><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
System.Action<T><ObjectExtensionPropertyInfo> configureAction
Returns
Type Description
ObjectExtensionInfo
Type Parameters
Name Description
TProperty

GetProperties()

Declaration
public virtual ImmutableList<ObjectExtensionPropertyInfo> GetProperties()
Returns
Type Description
System.Collections.Immutable.ImmutableList<T><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>>)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In This Article
Back to top Powered by Volosoft