Show / Hide Table of Contents

Class HasExtraPropertiesExtensions

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

Methods

GetProperty(IHasExtraProperties, string, object?)

Declaration
public static object? GetProperty(this IHasExtraProperties source, string name, object? defaultValue = null)
Parameters
Type Name Description
IHasExtraProperties source
string name
object defaultValue
Returns
Type Description
object

GetProperty<TProperty>(IHasExtraProperties, string, TProperty?)

Declaration
public static TProperty? GetProperty<TProperty>(this IHasExtraProperties source, string name, TProperty? defaultValue = default)
Parameters
Type Name Description
IHasExtraProperties source
string name
TProperty defaultValue
Returns
Type Description
TProperty
Type Parameters
Name Description
TProperty

HasProperty(IHasExtraProperties, string)

Declaration
public static bool HasProperty(this IHasExtraProperties source, string name)
Parameters
Type Name Description
IHasExtraProperties source
string name
Returns
Type Description
bool

HasSameExtraProperties(IHasExtraProperties, IHasExtraProperties)

Declaration
public static bool HasSameExtraProperties(this IHasExtraProperties source, IHasExtraProperties other)
Parameters
Type Name Description
IHasExtraProperties source
IHasExtraProperties other
Returns
Type Description
bool

RemoveProperty<TSource>(TSource, string)

Declaration
public static TSource RemoveProperty<TSource>(this TSource source, string name) where TSource : IHasExtraProperties
Parameters
Type Name Description
TSource source
string name
Returns
Type Description
TSource
Type Parameters
Name Description
TSource

SetDefaultsForExtraProperties(object, Type)

Declaration
public static void SetDefaultsForExtraProperties(object source, Type objectType)
Parameters
Type Name Description
object source
Type objectType

SetDefaultsForExtraProperties<TSource>(TSource, Type?)

Declaration
public static TSource SetDefaultsForExtraProperties<TSource>(this TSource source, Type? objectType = null) where TSource : IHasExtraProperties
Parameters
Type Name Description
TSource source
Type objectType
Returns
Type Description
TSource
Type Parameters
Name Description
TSource

SetExtraPropertiesToRegularProperties(IHasExtraProperties)

Declaration
public static void SetExtraPropertiesToRegularProperties(this IHasExtraProperties source)
Parameters
Type Name Description
IHasExtraProperties source

SetProperty<TSource>(TSource, string, object?, bool)

Declaration
public static TSource SetProperty<TSource>(this TSource source, string name, object? value, bool validate = true) where TSource : IHasExtraProperties
Parameters
Type Name Description
TSource source
string name
object value
bool validate
Returns
Type Description
TSource
Type Parameters
Name Description
TSource
In this article
Back to top Powered by ABP.IO Platform