Beispiel #1
0
        public async Task QueryMultipleAsync()
        {
            RequestContext context = new RequestContext
            {
                Scope   = Scope,
                SqlId   = "MultiQuery",
                Request = new
                {
                    Taken = 10
                }
            };
            MultipleResult multipleResult = new MultipleResult();

            multipleResult.AddTypeMap <T_Entity>();
            multipleResult.AddTypeMap <T_Entity>();
            await _sqlMapper.FillMultipleAsync(context, multipleResult);

            var val1 = multipleResult.Get <T_Entity>(0);
            var val2 = multipleResult.Get <T_Entity>(1);
        }