Show / Hide Table of Contents

Class EntityHelper

Inheritance
object
EntityHelper
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Domain.Entities
Assembly: Volo.Abp.Ddd.Domain.dll
Syntax
public static class EntityHelper

Fields

IsValueObjectPredicate

Declaration
public static Func<Type, bool> IsValueObjectPredicate
Field Value
Type Description
Func<Type, bool>

Methods

CheckEntity(Type)

Declaration
public static void CheckEntity(Type type)
Parameters
Type Name Description
Type type

CreateEqualityExpressionForId<TEntity, TKey>(TKey)

Declaration
public static Expression<Func<TEntity, bool>> CreateEqualityExpressionForId<TEntity, TKey>(TKey id) where TEntity : IEntity<TKey>
Parameters
Type Name Description
TKey id
Returns
Type Description
Expression<Func<TEntity, bool>>
Type Parameters
Name Description
TEntity
TKey

EntityEquals(IEntity?, IEntity?)

Declaration
public static bool EntityEquals(IEntity? entity1, IEntity? entity2)
Parameters
Type Name Description
IEntity entity1
IEntity entity2
Returns
Type Description
bool

FindPrimaryKeyType(Type)

Declaration
public static Type? FindPrimaryKeyType(Type entityType)
Parameters
Type Name Description
Type entityType
Returns
Type Description
Type

FindPrimaryKeyType<TEntity>()

Declaration
public static Type? FindPrimaryKeyType<TEntity>() where TEntity : IEntity
Returns
Type Description
Type
Type Parameters
Name Description
TEntity

HasDefaultId<TKey>(IEntity<TKey>)

Declaration
public static bool HasDefaultId<TKey>(IEntity<TKey> entity)
Parameters
Type Name Description
IEntity<TKey> entity
Returns
Type Description
bool
Type Parameters
Name Description
TKey

HasDefaultKeys(IEntity)

Declaration
public static bool HasDefaultKeys(IEntity entity)
Parameters
Type Name Description
IEntity entity
Returns
Type Description
bool

IsEntity(Type)

Declaration
public static bool IsEntity(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
bool

IsEntityWithId(Type)

Declaration
public static bool IsEntityWithId(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
bool

IsMultiTenant(Type)

Declaration
public static bool IsMultiTenant(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
bool

IsMultiTenant<TEntity>()

Declaration
public static bool IsMultiTenant<TEntity>() where TEntity : IEntity
Returns
Type Description
bool
Type Parameters
Name Description
TEntity

IsValueObject(object?)

Declaration
public static bool IsValueObject(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool

IsValueObject(Type)

Declaration
public static bool IsValueObject(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
bool

TrySetId<TKey>(IEntity<TKey>, Func<TKey>, bool)

Declaration
public static void TrySetId<TKey>(IEntity<TKey> entity, Func<TKey> idFactory, bool checkForDisableIdGenerationAttribute = false)
Parameters
Type Name Description
IEntity<TKey> entity
Func<TKey> idFactory
bool checkForDisableIdGenerationAttribute
Type Parameters
Name Description
TKey

TrySetTenantId(IEntity)

Declaration
public static void TrySetTenantId(IEntity entity)
Parameters
Type Name Description
IEntity entity
In this article
Back to top Powered by ABP.IO Platform