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