GetMultiResultSet() public static method

public static GetMultiResultSet ( ) : Net.Code.ADONet.Tests.Unit.Person[][]
return Net.Code.ADONet.Tests.Unit.Person[][]
Esempio n. 1
0
        public async Task AsMultipleResultSetAsync_WhenCalledAndAwaited_ReturnsMultiResultSet()
        {
            var command = PrepareCommand();

            command.SetMultiResultSet(Person.GetMultiResultSet());
            var commandBuilder = new CommandBuilder(command, DbConfig.Default);

            var result = (await commandBuilder.AsMultiResultSetAsync()).ToList();

            Person.VerifyMultiResultSet(result);
        }
Esempio n. 2
0
        public void AsMultiResultSetGeneric5_WhenCalled_ReturnsMultipleResultSets()
        {
            var command = PrepareCommand();

            var data = Person.GetMultiResultSet();

            command.SetMultiResultSet(data);
            var commandBuilder = new CommandBuilder(command, DbConfig.Default);

            var result = commandBuilder.AsMultiResultSet <Person, Person, Person, Person, Person>();

            Person.VerifyMultiResultSet(result);
        }