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);
        }
Exemple #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());
        }