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; }
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; }
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>(); }
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; }
public List<PortalChildColumn> Select(NameValueCollection where, NameValueCollection orderby) { PortalChildColumnDA da = new PortalChildColumnDA(); return da.Select(where, orderby).DataTableToList<PortalChildColumn>(); }