コード例 #1
0
 public void Add(TEntity entity)
 {
     _dbContext.SetAsAdded(entity);
 }
コード例 #2
0
 public void Insert(TEntity entity)
 {
     context.SetAsAdded(entity);
 }
コード例 #3
0
 /// <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));
 }