コード例 #1
0
 public int Delete(NameValueCollection where, out ErrorEntity ErrInfo)
 {
     PortalChildColumnDA da = new PortalChildColumnDA();
     int result = da.Delete(where);
     if (result > 0)
     {
         ErrInfo = new ErrorEntity(RespCode.Success);
     }
     else
     {
         ErrInfo = new ErrorEntity(RespCode.SysError);
     }
     return result;
 }
コード例 #2
0
 public Int64 Insert(NameValueCollection parameters, out ErrorEntity ErrInfo)
 {
     PortalChildColumnDA da = new PortalChildColumnDA();
     Int64 result = 0;
     result = da.InsertAndReturnId64(parameters);
     if (result > 0)
     {
         ErrInfo = new ErrorEntity(RespCode.Success);
     }
     else
     {
         ErrInfo = new ErrorEntity(RespCode.SysError);
     }
     return result;
 }
コード例 #3
0
 public List<PortalChildColumn> Select(NameValueCollection where, NameValueCollection orderby, int pageIndex, int pageSize, out int totalCount)
 {
     PortalChildColumnDA da = new PortalChildColumnDA();
     return da.Select(where, orderby, pageIndex, pageSize, out totalCount).DataTableToList<PortalChildColumn>();
 }
コード例 #4
0
 public Int32 Update(NameValueCollection parameters, NameValueCollection where, out ErrorEntity ErrInfo)
 {
     PortalChildColumnDA da = new PortalChildColumnDA();
     Int32 result = da.Update(parameters, where);
     if (result > 0)
     {
         ErrInfo = new ErrorEntity(RespCode.Success);
     }
     else
     {
         ErrInfo = new ErrorEntity(RespCode.SysError);
     }
     return result;
 }
コード例 #5
0
 public List<PortalChildColumn> Select(NameValueCollection where, NameValueCollection orderby)
 {
     PortalChildColumnDA da = new PortalChildColumnDA();
     return da.Select(where, orderby).DataTableToList<PortalChildColumn>();
 }