public Sweht BuildFromRow(DataRow row) { var returnRecord = Sweht.BuildSwehtFromRow(row); returnRecord = this.BuildExtraFromRow <Sweht>(returnRecord, row); return(returnRecord); }
public Sweht Insert(Sweht record) { DataRow row = this.dataSet.ttblsweht.NewttblswehtRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblsweht.AddttblswehtRow((pdsswehtDataSet.ttblswehtRow)row); this.SaveChanges(); return(this.dataSet.ttblsweht.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsweht.Rows[0]) : null); }
public Sweht GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Sweht sweht = null; if (row != null) { sweht = this.BuildFromRow(row); } return(sweht); }
protected Sweht Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblsweht.AsEnumerable().SingleOrDefault(); Sweht sweht = null; if (row != null) { sweht = this.BuildFromRow(row); } return(sweht); }
public void Delete(Sweht record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblsweht.NewttblswehtRow(); Sweht.BuildMinimalRow(ref row, record); this.dataSet.ttblsweht.AddttblswehtRow((pdsswehtDataSet.ttblswehtRow)row); } row.Delete(); this.SaveChanges(); }
public Sweht Update(Sweht 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.ttblsweht.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsweht.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Sweht record) { Sweht.UpdateRowFromSweht(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Sweht record) { this.adapter.Delete(record); }
public Sweht Update(Sweht record) { return(this.adapter.Update(record)); }
public Sweht Insert(Sweht record) { return(this.adapter.Insert(record)); }
public Sweht Insert(Sweht record) { return(this.repository.Insert(record)); }
public void Delete(Sweht record) { this.repository.Delete(record); }
public Sweht Update(Sweht record) { return(this.repository.Update(record)); }