public Icsl BuildFromRow(DataRow row) { var returnRecord = Icsl.BuildIcslFromRow(row); returnRecord = this.BuildExtraFromRow <Icsl>(returnRecord, row); return(returnRecord); }
public Icsl Insert(Icsl record) { DataRow row = this.dataSet.ttblicsl.NewttblicslRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicsl.AddttblicslRow((pdsicslDataSet.ttblicslRow)row); this.SaveChanges(); return(this.dataSet.ttblicsl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicsl.Rows[0]) : null); }
public Icsl GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Icsl icsl = null; if (row != null) { icsl = this.BuildFromRow(row); } return(icsl); }
protected Icsl Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblicsl.AsEnumerable().SingleOrDefault(); Icsl icsl = null; if (row != null) { icsl = this.BuildFromRow(row); } return(icsl); }
private void DeleteUseRowID(Icsl record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblicsl.NewttblicslRow(); Icsl.BuildMinimalRow(ref row, record); this.dataSet.ttblicsl.AddttblicslRow((pdsicslDataSet.ttblicslRow)row); } row.Delete(); this.SaveChanges(); }
public Icsl Update(Icsl record) { var row = this.GetRowByRowpointer(record.rowpointer, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblicsl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicsl.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Icsl record) { Icsl.UpdateRowFromIcsl(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Icsl Insert(Icsl record) { return(this.adapter.Insert(record)); }
public void Delete(Icsl record) { this.adapter.Delete(record); }
public Icsl Update(Icsl record) { return(this.adapter.Update(record)); }
public void Delete(Icsl record) { this.repository.Delete(record); }
public Icsl Update(Icsl record) { return(this.repository.Update(record)); }
public Icsl Insert(Icsl record) { return(this.repository.Insert(record)); }