Exemplo n.º 1
0
        /// <summary>Ejecuta el mapeo proveido y devuelve un dataset con los resultados del mismo</summary>
        public DataSet ExecMap(DataMapper DataMapper, DataMapper.Type MapType)
        {
            DataSet dtsRes = Exec(DataMapper.MapQuery(MapType));

            if (MapType == DataMapper.Type.Sel & dtsRes.Tables.Count > 0)
            {
                Map.SelectResult(dtsRes.Tables[0]);
            }
            return(dtsRes);
        }
Exemplo n.º 2
0
        /// <summary>Genera el objeto query correspondiente al mapeo</summary>
        public Query MapQuery(DataMapper.Type MapType)
        {
            Query = new Query();
            switch (MapType)
            {
            case Type.Sel:
                return(MapQuerySelect());

            case Type.Ins:
                return(MapQueryInsert());

            case Type.Upd:
                return(MapQueryUpdate());

            case Type.Del:
                return(MapQueryDelete());
            }
            return(null);
        }
Exemplo n.º 3
0
 /// <summary>Ejecuta el ultimo mapeo almacenado y devuelve un dataset con los resultados del mismo</summary>
 public DataSet ExecMap(DataMapper.Type MapType)
 {
     return(ExecMap(Map, MapType));
 }