public Cmsn BuildFromRow(DataRow row) { var returnRecord = Cmsn.BuildCmsnFromRow(row); returnRecord = this.BuildExtraFromRow <Cmsn>(returnRecord, row); return(returnRecord); }
public Cmsn Insert(Cmsn record) { DataRow row = this.dataSet.ttblcmsn.NewttblcmsnRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblcmsn.AddttblcmsnRow((pdscmsnDataSet.ttblcmsnRow)row); this.SaveChanges(); return(this.dataSet.ttblcmsn.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblcmsn.Rows[0]) : null); }
public Cmsn GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Cmsn cmsn = null; if (row != null) { cmsn = this.BuildFromRow(row); } return(cmsn); }
protected Cmsn Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblcmsn.AsEnumerable().SingleOrDefault(); Cmsn cmsn = null; if (row != null) { cmsn = this.BuildFromRow(row); } return(cmsn); }
public void Delete(Cmsn record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblcmsn.NewttblcmsnRow(); Cmsn.BuildMinimalRow(ref row, record); this.dataSet.ttblcmsn.AddttblcmsnRow((pdscmsnDataSet.ttblcmsnRow)row); } row.Delete(); this.SaveChanges(); }
public Cmsn Update(Cmsn 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.ttblcmsn.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblcmsn.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Cmsn record) { this.adapter.Delete(record); }
public Cmsn Update(Cmsn record) { return(this.adapter.Update(record)); }
public Cmsn Insert(Cmsn record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Cmsn record) { Cmsn.UpdateRowFromCmsn(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Cmsn record) { this.repository.Delete(record); }
public Cmsn Update(Cmsn record) { return(this.repository.Update(record)); }
public Cmsn Insert(Cmsn record) { return(this.repository.Insert(record)); }