Exemplo n.º 1
0
        public QueryInfo GetQueryInfo()
        {
            var queryData = WH.Web.UI.BindingPanel.SaveData <System.Collections.Hashtable>(Request.Form, 0);
            var info      = new QueryInfo();

            info.AddParam(queryData);
            return(info);
        }
Exemplo n.º 2
0
        public object SelectById(Type type, Object id)
        {
            QueryInfo info = new QueryInfo(type);

            info.CustomSQL = MappingInfo.GetMappingInfo(type).SelectById;
            info.AddParam(GetPrimaryKey(type), id);
            return(Dao.Query(info.ToSQLString(), info.Parameters, type)
                   .SingleOrDefault());
        }