public Dockmstr BuildFromRow(DataRow row) { var returnRecord = Dockmstr.BuildDockmstrFromRow(row); returnRecord = this.BuildExtraFromRow <Dockmstr>(returnRecord, row); return(returnRecord); }
public Dockmstr Insert(Dockmstr record) { DataRow row = this.dataSet.ttbldockmstr.NewttbldockmstrRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbldockmstr.AddttbldockmstrRow((pdsdockmstrDataSet.ttbldockmstrRow)row); this.SaveChanges(); return(this.dataSet.ttbldockmstr.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbldockmstr.Rows[0]) : null); }
public Dockmstr GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Dockmstr dockmstr = null; if (row != null) { dockmstr = this.BuildFromRow(row); } return(dockmstr); }
protected Dockmstr Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbldockmstr.AsEnumerable().SingleOrDefault(); Dockmstr dockmstr = null; if (row != null) { dockmstr = this.BuildFromRow(row); } return(dockmstr); }
public void Delete(Dockmstr record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbldockmstr.NewttbldockmstrRow(); Dockmstr.BuildMinimalRow(ref row, record); this.dataSet.ttbldockmstr.AddttbldockmstrRow((pdsdockmstrDataSet.ttbldockmstrRow)row); } row.Delete(); this.SaveChanges(); }
public Dockmstr Update(Dockmstr 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.ttbldockmstr.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbldockmstr.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Dockmstr Update(Dockmstr record) { return(this.repository.Update(record)); }
public Dockmstr Insert(Dockmstr record) { return(this.repository.Insert(record)); }
public void Delete(Dockmstr record) { this.repository.Delete(record); }
public void UpdateToRow(ref DataRow row, Dockmstr record) { Dockmstr.UpdateRowFromDockmstr(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Dockmstr record) { this.adapter.Delete(record); }
public Dockmstr Update(Dockmstr record) { return(this.adapter.Update(record)); }
public Dockmstr Insert(Dockmstr record) { return(this.adapter.Insert(record)); }