Show / Hide Table of Contents

Class HasExtraPropertiesExtensions

Inheritance
System.Object
HasExtraPropertiesExtensions
Namespace: Volo.Abp.Data
Assembly: Volo.Abp.ObjectExtending.dll
Syntax
public static class HasExtraPropertiesExtensions : object

Methods

GetProperty(IHasExtraProperties, String, Object)

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

GetProperty<TProperty>(IHasExtraProperties, String, TProperty)

Declaration
public static TProperty GetProperty<TProperty>(this IHasExtraProperties source, string name, TProperty defaultValue = null)
Parameters
Type Name Description
IHasExtraProperties source
System.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
System.String name
Returns
Type Description
System.Boolean

RemoveProperty<TSource>(TSource, String)

Declaration
public static TSource RemoveProperty<TSource>(this TSource source, string name)

    where TSource : IHasExtraProperties
Parameters
Type Name Description
TSource source
System.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
System.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

SetProperty<TSource>(TSource, String, Object, Boolean)

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
System.String name
System.Object value
System.Boolean validate
Returns
Type Description
TSource
Type Parameters
Name Description
TSource
Back to top Powered by Volosoft