public void Add(TEntity entity) { _dbContext.SetAsAdded(entity); }
public void Insert(TEntity entity) { context.SetAsAdded(entity); }
/// <summary> /// Asynchronously adds an entity /// </summary> /// <param name="entity">The entity</param> /// <returns>a future to be handled by the caller</returns> public Task AddAsync(TEntity entity) { _dbContext.SetAsAdded(entity); return(Task.FromResult <object>(null)); }