using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.FJC.Entity.Basic;
using QMFrameWork.Data;
using QMAPP.DAL;
namespace QMAPP.FJC.DAL.Basic
{
public class MoldSetDAL : BaseDAL
{
///
/// 获取所有的模腔号设置
///
///
public List GetList()
{
List list = new List();
string sql = "select * from T_BD_MOLDSET";
using (IDataSession session = AppDataFactory.CreateMainSession())
{
list = session.GetList(sql, new List().ToArray()).ToList();
}
return list;
}
///
/// 更新模腔号信息
///
///
public void Update(MoldSet entity)
{
if (this.BaseSession != null)
{
BaseSession.Update(entity);
}
else
{
using (IDataSession session = AppDataFactory.CreateMainSession())
{
session.Update(entity);
}
}
}
}
}