/***************************************************************************
*
* 功能: 持久层基类
* 作者: 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;
///
/// SYS_TABLE
///
public class P_SYS_TABLE : P_Base_House
{
public P_SYS_TABLE ()
{
//
// TODO: 此处添加SYS_TABLE的构造函数
//
}
///
/// 得到列表
///
public IList GetList()
{
return ExecuteQueryForList("SYS_TABLE_SELECT",null);
}
///
/// 新建
///
public int Add(SYS_TABLE sys_table)
{
//int id = this.GetPrimaryID("SYS_TABLE","SYS_TABLE_ID");
//sys_table.TABLE_ID = id;
return ExecuteInsert("SYS_TABLE_INSERT",sys_table);
}
///
/// 修改
///
public int Update(SYS_TABLE sys_table)
{
return ExecuteUpdate("SYS_TABLE_UPDATE",sys_table);
}
///
/// 得到明细
///
///
///
public SYS_TABLE GetModel(System.Int32 TABLE_ID)
{
return ExecuteQueryForObject("SYS_TABLE_SELECT_BY_ID",TABLE_ID);
}
///
/// 删除
///
///
public int Delete(System.Int32 TABLE_ID)
{
return ExecuteDelete("SYS_TABLE_DELETE",TABLE_ID);
}
}
}