public Vaesl BuildFromRow(DataRow row) { var returnRecord = Vaesl.BuildVaeslFromRow(row); returnRecord = this.BuildExtraFromRow <Vaesl>(returnRecord, row); return(returnRecord); }
public Vaesl Insert(Vaesl record) { DataRow row = this.dataSet.ttblvaesl.NewttblvaeslRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblvaesl.AddttblvaeslRow((pdsvaeslDataSet.ttblvaeslRow)row); this.SaveChanges(); return(this.dataSet.ttblvaesl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblvaesl.Rows[0]) : null); }
public Vaesl GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Vaesl vaesl = null; if (row != null) { vaesl = this.BuildFromRow(row); } return(vaesl); }
protected Vaesl Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblvaesl.AsEnumerable().SingleOrDefault(); Vaesl vaesl = null; if (row != null) { vaesl = this.BuildFromRow(row); } return(vaesl); }
public void Delete(Vaesl record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblvaesl.NewttblvaeslRow(); Vaesl.BuildMinimalRow(ref row, record); this.dataSet.ttblvaesl.AddttblvaeslRow((pdsvaeslDataSet.ttblvaeslRow)row); } row.Delete(); this.SaveChanges(); }
public Vaesl Update(Vaesl 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.ttblvaesl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblvaesl.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Vaesl record) { this.adapter.Delete(record); }
public Vaesl Update(Vaesl record) { return(this.adapter.Update(record)); }
public Vaesl Insert(Vaesl record) { return(this.adapter.Insert(record)); }
public void Delete(Vaesl record) { this.repository.Delete(record); }
public Vaesl Update(Vaesl record) { return(this.repository.Update(record)); }
public Vaesl Insert(Vaesl record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Vaesl record) { Vaesl.UpdateRowFromVaesl(ref row, record); this.ExtraUpdateToRow(ref row, record); }