public Int64 Insert(NameValueCollection parameters, out ErrorEntity ErrInfo) { PortalColumnNavDA da = new PortalColumnNavDA(); Int64 result = da.InsertAndReturnId64(parameters); if (result > 0) { ErrInfo = new ErrorEntity(RespCode.Success); } else { ErrInfo = new ErrorEntity(RespCode.SysError); } return result; }
public Int32 Delete(NameValueCollection where, out ErrorEntity ErrInfo) { PortalColumnNavDA da = new PortalColumnNavDA(); Int32 result = da.Delete(where); if (result >= 0) { ErrInfo = new ErrorEntity(RespCode.Success); } else { ErrInfo = new ErrorEntity(RespCode.SysError); } return result; }
public List<PortalColumnNav> Select(NameValueCollection where, NameValueCollection orderby, int pageIndex, int pageSize, out int totalCount) { PortalColumnNavDA da = new PortalColumnNavDA(); return da.Select(where, orderby, pageIndex, pageSize, out totalCount).DataTableToList<PortalColumnNav>(); }
public List<PortalColumnNav> Select(NameValueCollection where, NameValueCollection orderby) { PortalColumnNavDA da = new PortalColumnNavDA(); return da.Select(where, orderby).DataTableToList<PortalColumnNav>(); }