public Cmsl BuildFromRow(DataRow row) { var returnRecord = Cmsl.BuildCmslFromRow(row); returnRecord = this.BuildExtraFromRow <Cmsl>(returnRecord, row); return(returnRecord); }
public Cmsl Insert(Cmsl record) { DataRow row = this.dataSet.ttblcmsl.NewttblcmslRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblcmsl.AddttblcmslRow((pdscmslDataSet.ttblcmslRow)row); this.SaveChanges(); return(this.dataSet.ttblcmsl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblcmsl.Rows[0]) : null); }
public Cmsl GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Cmsl cmsl = null; if (row != null) { cmsl = this.BuildFromRow(row); } return(cmsl); }
protected Cmsl Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblcmsl.AsEnumerable().SingleOrDefault(); Cmsl cmsl = null; if (row != null) { cmsl = this.BuildFromRow(row); } return(cmsl); }
public void Delete(Cmsl record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblcmsl.NewttblcmslRow(); Cmsl.BuildMinimalRow(ref row, record); this.dataSet.ttblcmsl.AddttblcmslRow((pdscmslDataSet.ttblcmslRow)row); } row.Delete(); this.SaveChanges(); }
public Cmsl Update(Cmsl 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.ttblcmsl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblcmsl.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Cmsl Update(Cmsl record) { return(this.repository.Update(record)); }
public Cmsl Insert(Cmsl record) { return(this.repository.Insert(record)); }
public void Delete(Cmsl record) { this.repository.Delete(record); }
public void UpdateToRow(ref DataRow row, Cmsl record) { Cmsl.UpdateRowFromCmsl(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Cmsl record) { this.adapter.Delete(record); }
public Cmsl Update(Cmsl record) { return(this.adapter.Update(record)); }
public Cmsl Insert(Cmsl record) { return(this.adapter.Insert(record)); }