public TriggerSetup BuildFromRow(DataRow row) { var returnRecord = TriggerSetup.BuildTriggerSetupFromRow(row); returnRecord = this.BuildExtraFromRow <TriggerSetup>(returnRecord, row); return(returnRecord); }
public TriggerSetup Insert(TriggerSetup record) { DataRow row = this.dataSet.ttbltrigger_setup.Newttbltrigger_setupRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbltrigger_setup.Addttbltrigger_setupRow((pdstrigger_setupDataSet.ttbltrigger_setupRow)row); this.SaveChanges(); return(this.dataSet.ttbltrigger_setup.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbltrigger_setup.Rows[0]) : null); }
public TriggerSetup GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); TriggerSetup triggerSetup = null; if (row != null) { triggerSetup = this.BuildFromRow(row); } return(triggerSetup); }
protected TriggerSetup Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbltrigger_setup.AsEnumerable().SingleOrDefault(); TriggerSetup triggerSetup = null; if (row != null) { triggerSetup = this.BuildFromRow(row); } return(triggerSetup); }
public void Setup() { if (_isSetup) { return; } _isSetup = true; if (TriggerSetup != null) { TriggerSetup.Invoke(this); } }
public void Delete(TriggerSetup record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbltrigger_setup.Newttbltrigger_setupRow(); TriggerSetup.BuildMinimalRow(ref row, record); this.dataSet.ttbltrigger_setup.Addttbltrigger_setupRow((pdstrigger_setupDataSet.ttbltrigger_setupRow)row); } row.Delete(); this.SaveChanges(); }
public TriggerSetup Update(TriggerSetup 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.ttbltrigger_setup.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbltrigger_setup.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(TriggerSetup record) { this.adapter.Delete(record); }
public TriggerSetup Update(TriggerSetup record) { return(this.adapter.Update(record)); }
public TriggerSetup Insert(TriggerSetup record) { return(this.adapter.Insert(record)); }
public TriggerSetup Update(TriggerSetup record) { return(this.repository.Update(record)); }
public TriggerSetup Insert(TriggerSetup record) { return(this.repository.Insert(record)); }
public void Delete(TriggerSetup record) { this.repository.Delete(record); }
public void UpdateToRow(ref DataRow row, TriggerSetup record) { TriggerSetup.UpdateRowFromTriggerSetup(ref row, record); this.ExtraUpdateToRow(ref row, record); }