public Int64 Insert(NameValueCollection parameters, out ErrorEntity ErrInfo) { PortalChildColumnContentDA da = new PortalChildColumnContentDA(); 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) { PortalChildColumnContentDA da = new PortalChildColumnContentDA(); Int32 result = da.Delete(where); if(result >= 0) { ErrInfo = new ErrorEntity(RespCode.Success); } else { ErrInfo = new ErrorEntity(RespCode.SysError); } return result; }
public List<PortalChildColumnContent> Select(NameValueCollection where, NameValueCollection orderby) { PortalChildColumnContentDA da = new PortalChildColumnContentDA(); return da.Select(where, orderby).DataTableToList<PortalChildColumnContent>(); }