/*************************************************************************** * * 功能: 持久层基类 * 作者: Siasun * 日期: 2013/4/11 * * 修改日期: * 修改人: * 修改内容: * * *************************************************************************/ namespace SiaSun.LMS.Persistence { using System; using System.Collections; using System.Collections.Generic; using IBatisNet.Common; using IBatisNet.DataMapper; using IBatisNet.Common.Exceptions; using SiaSun.LMS.Model; /// /// STORAGE_LIST /// public class P_STORAGE_LIST : P_Base_House { public P_STORAGE_LIST () { // // TODO: 此处添加STORAGE_LIST的构造函数 // } /// /// 得到列表 /// public IList GetList() { return ExecuteQueryForList("STORAGE_LIST_SELECT",null); } /// /// 得到列表 /// public IList GetListStorageID(int STORAGE_ID) { return this.ExecuteQueryForList("STORAGE_LIST_SELECT_BY_STORAGE_ID", STORAGE_ID); } /// /// 新建 /// public int Add(STORAGE_LIST storage_list) { //int id = this.GetPrimaryID("STORAGE_LIST","STORAGE_LIST_ID"); //storage_list.STORAGE_LIST_ID = id; return ExecuteInsert("STORAGE_LIST_INSERT",storage_list); } /// /// 修改 /// public int Update(STORAGE_LIST storage_list) { return ExecuteUpdate("STORAGE_LIST_UPDATE",storage_list); } /// /// 得到明细 /// /// /// public STORAGE_LIST GetModel(System.Int32 STORAGE_LIST_ID) { return ExecuteQueryForObject("STORAGE_LIST_SELECT_BY_ID",STORAGE_LIST_ID); } /// /// 删除 /// /// public int Delete(System.Int32 STORAGE_LIST_ID) { return ExecuteDelete("STORAGE_LIST_DELETE",STORAGE_LIST_ID); } } }