public virtual void Add <TEntity>(TEntity entity) where TEntity : class
        {
            // todo: Add code related to addition of entity before to commit changes in database

            DbContext.Add(entity);
        }
Exemplo n.º 2
0
 public virtual void Add <TEntity>(TEntity entity) where TEntity : class
 {
     DbContext.Add(entity);
 }