예제 #1
0
        public virtual async Task <TEntity> CreateAsync(TEntity entity, CancellationToken cancellationToken)
        {
            entity = await Store.CreateAsync(entity, cancellationToken);

            return(entity);
        }
예제 #2
0
 /// <summary>
 /// Insere registros da tabela por entity
 /// </summary>
 public async Task <IEnumerable <TModel> > CreateAsync(params TModel[] entity)
 {
     return(await _store.CreateAsync(CancellationToken, entity));
 }