示例#1
0
        public void FillMultiple()
        {
            RequestContext context = new RequestContext
            {
                Scope   = Scope,
                SqlId   = "MultiQuery",
                Request = new
                {
                    Taken = 10
                }
            };
            MultipleResult multipleResult = new MultipleResult();

            multipleResult.AddTypeMap <T_Entity>();
            multipleResult.AddTypeMap <T_Entity>();
            _sqlMapper.FillMultiple(context, multipleResult);
            var val1 = multipleResult.Get <T_Entity>(0);
            var val2 = multipleResult.Get <T_Entity>(1);
        }