Repository<TEntity>
Namespace: MyClassLib.SubNamespace
A repository abstraction with class + new() constraints on its type parameter.
public class Repository<TEntity> where TEntity : class, new()
Type Parameters
TEntity
A reference-type entity with a parameterless ctor.
Inheritance Object → Repository<TEntity>
Attributes NullableContextAttribute, NullableAttribute
Constructors
Repository()
public Repository()
Methods
Create()
Creates a fresh entity.
public TEntity Create()
Returns
TEntity
A new entity instance.