コード例 #1
0
        public IList <MDL.T_GdListTemplate> GetAllByCategory(MDL.T_GdListTemplate obj)
        {
            String stmtId = "T_GdListTemplate.GetAllByCategory";
            IList <MDL.T_GdListTemplate> result = MyISqlMap.QueryForList <MDL.T_GdListTemplate>(stmtId, obj);

            return(result);
        }
コード例 #2
0
        public MDL.T_GdListTemplate FindID(String ID)
        {
            String stmtId = "T_GdListTemplate.FindID";

            MDL.T_GdListTemplate temp_MDL = new MDL.T_GdListTemplate();
            temp_MDL.ID = ID;
            MDL.T_GdListTemplate result = MyISqlMap.QueryForObject <MDL.T_GdListTemplate>(stmtId, temp_MDL);
            return(result);
        }
コード例 #3
0
        public void Update(MDL.T_GdListTemplate obj)
        {
            if (obj == null)
            {
                throw new ArgumentNullException("obj");
            }
            String stmtId = "T_GdListTemplate.Update";

            MyISqlMap.Update(stmtId, obj);
        }
コード例 #4
0
        public void Delete(String ID)
        {
            if (ID == null)
            {
                throw new ArgumentNullException("obj");
            }
            String stmtId = "T_GdListTemplate.Delete";

            MDL.T_GdListTemplate obj = new MDL.T_GdListTemplate();
            obj.ID = ID;
            MyISqlMap.Delete(stmtId, obj);
        }
コード例 #5
0
        public string FindOrderIndex(int OrderIndex)
        {
            String stmtId = "T_GdListTemplate.FindOrderIndex";

            MDL.T_GdListTemplate temp_MDL = new MDL.T_GdListTemplate();
            temp_MDL.OrderIndex = OrderIndex;
            MDL.T_GdListTemplate result = MyISqlMap.QueryForObject <MDL.T_GdListTemplate>(stmtId, temp_MDL);
            if (result != null)
            {
                return(result.ID);
            }
            else
            {
                return("");
            }
        }