public Icama BuildFromRow(DataRow row) { var returnRecord = Icama.BuildIcamaFromRow(row); returnRecord = this.BuildExtraFromRow <Icama>(returnRecord, row); return(returnRecord); }
public Icama Insert(Icama record) { DataRow row = this.dataSet.ttblicama.NewttblicamaRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicama.AddttblicamaRow((pdsicamaDataSet.ttblicamaRow)row); this.SaveChanges(); return(this.dataSet.ttblicama.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicama.Rows[0]) : null); }
public Icama GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Icama icama = null; if (row != null) { icama = this.BuildFromRow(row); } return(icama); }
protected Icama Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblicama.AsEnumerable().SingleOrDefault(); Icama icama = null; if (row != null) { icama = this.BuildFromRow(row); } return(icama); }
public void Delete(Icama record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblicama.NewttblicamaRow(); Icama.BuildMinimalRow(ref row, record); this.dataSet.ttblicama.AddttblicamaRow((pdsicamaDataSet.ttblicamaRow)row); } row.Delete(); this.SaveChanges(); }
public Icama Update(Icama 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.ttblicama.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicama.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Icama record) { this.adapter.Delete(record); }
public Icama Update(Icama record) { return(this.adapter.Update(record)); }
public Icama Insert(Icama record) { return(this.adapter.Insert(record)); }
public Icama Insert(Icama record) { return(this.repository.Insert(record)); }
public void Delete(Icama record) { this.repository.Delete(record); }
public Icama Update(Icama record) { return(this.repository.Update(record)); }
public void UpdateToRow(ref DataRow row, Icama record) { Icama.UpdateRowFromIcama(ref row, record); this.ExtraUpdateToRow(ref row, record); }