示例#1
0
        public ResultObjectMapping ProcessRow(ResultObjectMapping parent, object row)
        {
            var result = new ResultObjectMapping();

            Selects.ForEach(it => result.Add(it.Key, it.Value(row)));
            result.Add(parent);
            return(result);
        }
示例#2
0

        
示例#3
0
        public ResultObjectMapping ProcessRow(IDataReader dr)
        {
            var result = new ResultObjectMapping();

            foreach (var sel in Query.Selects)
            {
                result.Add(sel.QuerySource, sel.Instancer(result, dr));
            }
            return(result);
        }
示例#4
0
        public ResultObjectMapping ProcessRow(ResultObjectMapping parent, string[] items)
        {
            var result = new ResultObjectMapping();

            for (int i = 0; i < Selects.Count; i++)
            {
                var sel = Selects[i];
                result.Add(sel.Key, sel.Value(items[i]));
            }
            result.Add(parent);
            return(result);
        }