public Glif BuildFromRow(DataRow row) { var returnRecord = Glif.BuildGlifFromRow(row); returnRecord = this.BuildExtraFromRow <Glif>(returnRecord, row); return(returnRecord); }
public Glif Insert(Glif record) { DataRow row = this.dataSet.ttblglif.NewttblglifRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblglif.AddttblglifRow((pdsglifDataSet.ttblglifRow)row); this.SaveChanges(); return(this.dataSet.ttblglif.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblglif.Rows[0]) : null); }
public Glif GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Glif glif = null; if (row != null) { glif = this.BuildFromRow(row); } return(glif); }
protected Glif Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblglif.AsEnumerable().SingleOrDefault(); Glif glif = null; if (row != null) { glif = this.BuildFromRow(row); } return(glif); }
public void Delete(Glif record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblglif.NewttblglifRow(); Glif.BuildMinimalRow(ref row, record); this.dataSet.ttblglif.AddttblglifRow((pdsglifDataSet.ttblglifRow)row); } row.Delete(); this.SaveChanges(); }
public Glif Update(Glif record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblglif.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblglif.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public AsglinquiryGLIFDetailBannerResponseAPI GLIFDetailBanner(Glifdetailbannercriteria glifdetailbannercriteria) { var result = new AsglinquiryGLIFDetailBannerResponseAPI(); var pdsglifdetailbanner = new pdsglifdetailbannerDataSet(); var pdsglif = new pdsglifDataSet(); DataRow ttblglifdetailbannercriteriaCriteria = pdsglifdetailbanner.ttblglifdetailbannercriteria.NewttblglifdetailbannercriteriaRow(); Glifdetailbannercriteria.UpdateRowFromGlifdetailbannercriteria(ref ttblglifdetailbannercriteriaCriteria, glifdetailbannercriteria); pdsglifdetailbanner.ttblglifdetailbannercriteria.AddttblglifdetailbannercriteriaRow((pdsglifdetailbannerDataSet.ttblglifdetailbannercriteriaRow)ttblglifdetailbannercriteriaCriteria); string cErrorMessage = string.Empty; NLogLoggerP.Trace("GLIFDetailBanner - Asglinquiry - Before Call"); StopwatchUtil.Time( () => { using (var poAsglinquiryproxy = this.proxyAppObject.CreatePO_asglinquiryproxy()) { this.SetRequiredContextParameters(); poAsglinquiryproxy.GLIFDetailBanner(ref pdsContext, ref pdsglifdetailbanner, out pdsglif, out cErrorMessage); } }); NLogLoggerP.Info("GLIFDetailBanner - Asglinquiry - After Call"); this.ReportErrors(cErrorMessage); this.ReportErrors(this.pdsContext); this.ReportErrors(pdsglifdetailbanner); if (pdsglif.ttblglif.Count > 0) { result.glif = Glif.BuildGlifFromRow(pdsglif.ttblglif[0]); } if (pdsglifdetailbanner.ttblglifdetailbannerresults.Count > 0) { result.glifdetailbannerresults = Glifdetailbannerresults.BuildGlifdetailbannerresultsFromRow(pdsglifdetailbanner.ttblglifdetailbannerresults[0]); } return(result); }
public void UpdateToRow(ref DataRow row, Glif record) { Glif.UpdateRowFromGlif(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Glif Insert(Glif record) { return(this.repository.Insert(record)); }
public void Delete(Glif record) { this.repository.Delete(record); }
public Glif Update(Glif record) { return(this.repository.Update(record)); }
public void Delete(Glif record) { this.adapter.Delete(record); }
public Glif Update(Glif record) { return(this.adapter.Update(record)); }
public Glif Insert(Glif record) { return(this.adapter.Insert(record)); }