public Sasse BuildFromRow(DataRow row) { var returnRecord = Sasse.BuildSasseFromRow(row); returnRecord = this.BuildExtraFromRow <Sasse>(returnRecord, row); return(returnRecord); }
public Sasse Insert(Sasse record) { DataRow row = this.dataSet.ttblsasse.NewttblsasseRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblsasse.AddttblsasseRow((pdssasseDataSet.ttblsasseRow)row); this.SaveChanges(); return(this.dataSet.ttblsasse.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsasse.Rows[0]) : null); }
public Sasse GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Sasse sasse = null; if (row != null) { sasse = this.BuildFromRow(row); } return(sasse); }
protected Sasse Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblsasse.AsEnumerable().SingleOrDefault(); Sasse sasse = null; if (row != null) { sasse = this.BuildFromRow(row); } return(sasse); }
public void Delete(Sasse record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblsasse.NewttblsasseRow(); Sasse.BuildMinimalRow(ref row, record); this.dataSet.ttblsasse.AddttblsasseRow((pdssasseDataSet.ttblsasseRow)row); } row.Delete(); this.SaveChanges(); }
public Sasse Update(Sasse 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.ttblsasse.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsasse.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Sasse record) { Sasse.UpdateRowFromSasse(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Sasse record) { this.adapter.Delete(record); }
public Sasse Update(Sasse record) { return(this.adapter.Update(record)); }
public Sasse Insert(Sasse record) { return(this.adapter.Insert(record)); }
public Sasse Update(Sasse record) { return(this.repository.Update(record)); }
public Sasse Insert(Sasse record) { return(this.repository.Insert(record)); }
public void Delete(Sasse record) { this.repository.Delete(record); }