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
public static class HasExtraPropertiesExtensions
Methods
Declaration
public static object GetProperty(this IHasExtraProperties source, string name, object defaultValue = null)
Parameters
Returns
Declaration
public static TProperty GetProperty<TProperty>(this IHasExtraProperties source, string name, TProperty defaultValue = default)
Parameters
Returns
| Type |
Description |
| TProperty |
|
Type Parameters
| Name |
Description |
| TProperty |
|
Declaration
public static bool HasProperty(this IHasExtraProperties source, string name)
Parameters
Returns
Declaration
public static bool HasSameExtraProperties(this IHasExtraProperties source, IHasExtraProperties other)
Parameters
Returns
Declaration
public static TSource RemoveProperty<TSource>(this TSource source, string name) where TSource : IHasExtraProperties
Parameters
| Type |
Name |
Description |
| TSource |
source |
|
| string |
name |
|
Returns
Type Parameters
Declaration
public static void SetDefaultsForExtraProperties(object source, Type objectType)
Parameters
| Type |
Name |
Description |
| object |
source |
|
| System.Type |
objectType |
|
Declaration
public static TSource SetDefaultsForExtraProperties<TSource>(this TSource source, Type objectType = null) where TSource : IHasExtraProperties
Parameters
| Type |
Name |
Description |
| TSource |
source |
|
| System.Type |
objectType |
|
Returns
Type Parameters
Declaration
public static void SetExtraPropertiesToRegularProperties(this IHasExtraProperties source)
Parameters
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 Parameters