Пример #1
0
        public async Task Test_Execute_WithoutParameter()
        {
            await _fluentEntity
            .InsertInto(new GenreMock { Id = 1, RowVersion = DateTime.Now, Name = "Drama" })
            .ExecuteAsync();

            var result = await _daoHelper.ExecuteAsync("DELETE FROM genre");

            result.Should().Be(1);
        }
Пример #2
0
        public async Task <int> ExecuteAsync()
        {
            var command = $"{_baseCommand} {_whereHelper.CommandWhere}";

            return(await _daoHelper.ExecuteAsync(command));
        }
Пример #3
0
 public async Task <int> ExecuteAsync()
 {
     return(await _daoHelper.ExecuteAsync <T>(_commands));
 }