Ejemplo n.º 1
0
 /// <summary>
 /// 更新数据
 /// </summary>
 /// <param name="Tbchuang">数据表实体对象</param>
 public static Exception Update(TbchuangInfo TbchuangInfo)
 {
     return(TbchuangDAL.Update(TbchuangInfo));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 删除数据
 /// </summary>
 /// <param name="pkId">表主键</param>
 public static Exception Delete(object pkId)
 {
     return(TbchuangDAL.Delete(pkId));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 添加数据
 /// </summary>
 /// <param name="Tbchuang">数据表实体对象</param>
 public static Exception Add(TbchuangInfo TbchuangInfo)
 {
     return(TbchuangDAL.Add(TbchuangInfo));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 查询所有数据并返回数据集
 /// </summary>
 public static List <TbchuangInfo> GetTbchuang(string strWhere)
 {
     return(TbchuangDAL.GetTbchuang(strWhere));
 }
Ejemplo n.º 5
0
 public static DataTable GetTbchuangDT(string strwhere)
 {
     return(TbchuangDAL.GetTbchuangDT(strwhere));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// 查询所有数据并返回数据集
 /// </summary>
 public static List <TbchuangInfo> GetTbchuang()
 {
     return(TbchuangDAL.GetTbchuang(""));
 }
Ejemplo n.º 7
0
 /// <summary>
 /// 获取一个实体对象
 /// </summary>
 public static TbchuangInfo GetModel(object id)
 {
     return(TbchuangDAL.GetModel(id));
 }