Class EntityExtensions
Inheritance
System.Object
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public static class EntityExtensions
Methods
IsNewEntity(IEntity)
Returns true if this entity has just been created and persisted to the data store
Declaration
public static bool IsNewEntity(this IEntity entity)
Parameters
Type | Name | Description |
---|---|---|
IEntity | entity |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
This is useful when handling events to determine if an entity is a brand new entity or was already existing.