public Swert BuildFromRow(DataRow row) { var returnRecord = Swert.BuildSwertFromRow(row); returnRecord = this.BuildExtraFromRow <Swert>(returnRecord, row); return(returnRecord); }
public Swert Insert(Swert record) { DataRow row = this.dataSet.ttblswert.NewttblswertRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblswert.AddttblswertRow((pdsswertDataSet.ttblswertRow)row); this.SaveChanges(); return(this.dataSet.ttblswert.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblswert.Rows[0]) : null); }
public Swert GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Swert swert = null; if (row != null) { swert = this.BuildFromRow(row); } return(swert); }
protected Swert Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblswert.AsEnumerable().SingleOrDefault(); Swert swert = null; if (row != null) { swert = this.BuildFromRow(row); } return(swert); }
public void Delete(Swert record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblswert.NewttblswertRow(); Swert.BuildMinimalRow(ref row, record); this.dataSet.ttblswert.AddttblswertRow((pdsswertDataSet.ttblswertRow)row); } row.Delete(); this.SaveChanges(); }
public Swert Update(Swert 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.ttblswert.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblswert.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Swert record) { this.adapter.Delete(record); }
public Swert Update(Swert record) { return(this.adapter.Update(record)); }
public Swert Insert(Swert record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Swert record) { Swert.UpdateRowFromSwert(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Swert Insert(Swert record) { return(this.repository.Insert(record)); }
public void Delete(Swert record) { this.repository.Delete(record); }
public Swert Update(Swert record) { return(this.repository.Update(record)); }