public void AddInBatch <T>(T entity, IBatch batch) { var command = RepositoryContext.GetTable <T>() .Insert(entity); batch.Append(command); }