Interface IEntityFactory<T>
Represents a factory for creating entities of type T.
public interface IEntityFactory<T> where T : class
Type Parameters
T
The type of entity.
Methods
- Create()
Creates a new instance of the entity.
- Create(IPrimaryKey)
Creates a new instance of the entity with the specified primary keys.
- Create(IPropertyValues)
Creates a new instance of the entity with the specified property values.
- SetValues<TOther>(TOther, IPropertyValues)
Sets the property values of the specified entity.