public Icsabc BuildFromRow(DataRow row) { var returnRecord = Icsabc.BuildIcsabcFromRow(row); returnRecord = this.BuildExtraFromRow <Icsabc>(returnRecord, row); return(returnRecord); }
public Icsabc Insert(Icsabc record) { DataRow row = this.dataSet.ttblicsabc.NewttblicsabcRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicsabc.AddttblicsabcRow((pdsicsabcDataSet.ttblicsabcRow)row); this.SaveChanges(); return(this.dataSet.ttblicsabc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicsabc.Rows[0]) : null); }
public Icsabc GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Icsabc icsabc = null; if (row != null) { icsabc = this.BuildFromRow(row); } return(icsabc); }
protected Icsabc Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblicsabc.AsEnumerable().SingleOrDefault(); Icsabc icsabc = null; if (row != null) { icsabc = this.BuildFromRow(row); } return(icsabc); }
public void Delete(Icsabc record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblicsabc.NewttblicsabcRow(); Icsabc.BuildMinimalRow(ref row, record); this.dataSet.ttblicsabc.AddttblicsabcRow((pdsicsabcDataSet.ttblicsabcRow)row); } row.Delete(); this.SaveChanges(); }
public Icsabc Update(Icsabc 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.ttblicsabc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicsabc.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Icsabc record) { Icsabc.UpdateRowFromIcsabc(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Icsabc record) { this.adapter.Delete(record); }
public Icsabc Update(Icsabc record) { return(this.adapter.Update(record)); }
public Icsabc Insert(Icsabc record) { return(this.adapter.Insert(record)); }
public Icsabc Insert(Icsabc record) { return(this.repository.Insert(record)); }
public void Delete(Icsabc record) { this.repository.Delete(record); }
public Icsabc Update(Icsabc record) { return(this.repository.Update(record)); }