public Ld_Member_Account GetAccountPro(int systemId, string companyId, string memberId) { try { if (systemId == 0) { throw new Exception("系统编号不能为0!"); } if (string.IsNullOrEmpty(companyId)) { throw new Exception("公司编号不能为0!"); } int errCode = -1; string errMsg = "fail"; var result = LdCmsDbEntitiesContext.SP_Get_Member_Account(systemId, companyId, memberId, out errCode, out errMsg); if (errCode != 0) { throw new Exception(errMsg); } if (result == null) { return(null); } else { return(result.ToObject <List <Ld_Member_Account> >().FirstOrDefault()); } } catch (Exception ex) { throw new Exception(ex.Message); } }