public Twlregistry BuildFromRow(DataRow row) { var returnRecord = Twlregistry.BuildTwlregistryFromRow(row); returnRecord = this.BuildExtraFromRow <Twlregistry>(returnRecord, row); return(returnRecord); }
public Twlregistry Insert(Twlregistry record) { DataRow row = this.dataSet.ttbltwlregistry.NewttbltwlregistryRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbltwlregistry.AddttbltwlregistryRow((pdstwlregistryDataSet.ttbltwlregistryRow)row); this.SaveChanges(); return(this.dataSet.ttbltwlregistry.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbltwlregistry.Rows[0]) : null); }
public Twlregistry GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Twlregistry twlregistry = null; if (row != null) { twlregistry = this.BuildFromRow(row); } return(twlregistry); }
protected Twlregistry Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbltwlregistry.AsEnumerable().SingleOrDefault(); Twlregistry twlregistry = null; if (row != null) { twlregistry = this.BuildFromRow(row); } return(twlregistry); }
public void Delete(Twlregistry record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbltwlregistry.NewttbltwlregistryRow(); Twlregistry.BuildMinimalRow(ref row, record); this.dataSet.ttbltwlregistry.AddttbltwlregistryRow((pdstwlregistryDataSet.ttbltwlregistryRow)row); } row.Delete(); this.SaveChanges(); }
public Twlregistry Update(Twlregistry 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.ttbltwlregistry.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbltwlregistry.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Twlregistry record) { this.adapter.Delete(record); }
public Twlregistry Update(Twlregistry record) { return(this.adapter.Update(record)); }
public Twlregistry Insert(Twlregistry record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Twlregistry record) { Twlregistry.UpdateRowFromTwlregistry(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Twlregistry Update(Twlregistry record) { return(this.repository.Update(record)); }
public Twlregistry Insert(Twlregistry record) { return(this.repository.Insert(record)); }
public void Delete(Twlregistry record) { this.repository.Delete(record); }