public int SqlExe_Update(string id) { int result = 0; IYljxkhzbService service = this.CreateSubClient(); ICommunicationObject comm = service as ICommunicationObject; comm.Using(client => { result = service.SqlExe_Update(id); }); return(result); }
///// <summary> ///// 根据名称查找对象(自定义接口使用范例) ///// </summary> //public List<YljxkhzbInfo> FindByName(string name) //{ // List<YljxkhzbInfo> result = new List<YljxkhzbInfo>(); // IYljxkhzbService service = CreateSubClient(); // ICommunicationObject comm = service as ICommunicationObject; // comm.Using(client => // { // result = service.FindByName(name); // }); // return result; //} public bool SaveExcelData(List <YljxkhzbInfo> list) { bool result = false; IYljxkhzbService service = this.CreateSubClient(); ICommunicationObject comm = service as ICommunicationObject; comm.Using(client => { result = service.SaveExcelData(list); }); return(result); }