/*************************************************************************** * * 功能: 持久层基类 * 作者: 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; /// /// FLOW_ACTION /// public class P_FLOW_ACTION : P_Base_House { public P_FLOW_ACTION () { // // TODO: 此处添加FLOW_ACTION的构造函数 // } /// /// 得到列表 /// public IList GetList() { return ExecuteQueryForList("FLOW_ACTION_SELECT",null); } /// /// 新建 /// public int Add(FLOW_ACTION flow_action) { //int id = this.GetPrimaryID("FLOW_ACTION","FLOW_ACTION_ID"); //flow_action.FLOW_ACTION_ID = id; return ExecuteInsert("FLOW_ACTION_INSERT",flow_action); } /// /// 修改 /// public int Update(FLOW_ACTION flow_action) { return ExecuteUpdate("FLOW_ACTION_UPDATE",flow_action); } /// /// 得到明细 /// /// /// public FLOW_ACTION GetModel(System.Int32 FLOW_ACTION_ID) { return ExecuteQueryForObject("FLOW_ACTION_SELECT_BY_ID",FLOW_ACTION_ID); } /// /// 删除 /// /// public int Delete(System.Int32 FLOW_ACTION_ID) { return ExecuteDelete("FLOW_ACTION_DELETE",FLOW_ACTION_ID); } } }