Try our conversational search powered by Generative AI!

Interface IEntity<T>

Defines the necessary identifiers and functionality that a class must implement to be usable as an entity

Namespace: EPiServer.Data.Entity
Assembly: EPiServer.Data.dll
Version: 11.20.7
Syntax
public interface IEntity<out T> : IEntity, ICacheable, IReadOnly<T>, IReadOnly where T : IEntity
Type Parameters
Name Description
T

Properties

Master

Gets the original instance for a writable copy or null if this is the original instance.

Declaration
T Master { get; }
Property Value
Type Description
T
Remarks

This can be used for detecting changes that have been made to a writable copy.

Methods

CopyAsNew()

Creates a writable copy of the current object that can be saved as a new entity.

Declaration
T CopyAsNew()
Returns
Type Description
T

A writable copy of the current object.

Remarks

The cloning is a deep-copy. Identitiers for the entity are cleared.

Extension Methods

See Also