public Swel BuildFromRow(DataRow row) { var returnRecord = Swel.BuildSwelFromRow(row); returnRecord = this.BuildExtraFromRow <Swel>(returnRecord, row); return(returnRecord); }
public Swel Insert(Swel record) { DataRow row = this.dataSet.ttblswel.NewttblswelRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblswel.AddttblswelRow((pdsswelDataSet.ttblswelRow)row); this.SaveChanges(); return(this.dataSet.ttblswel.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblswel.Rows[0]) : null); }
public Swel GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Swel swel = null; if (row != null) { swel = this.BuildFromRow(row); } return(swel); }
protected Swel Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblswel.AsEnumerable().SingleOrDefault(); Swel swel = null; if (row != null) { swel = this.BuildFromRow(row); } return(swel); }
public void Delete(Swel record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblswel.NewttblswelRow(); Swel.BuildMinimalRow(ref row, record); this.dataSet.ttblswel.AddttblswelRow((pdsswelDataSet.ttblswelRow)row); } row.Delete(); this.SaveChanges(); }
public Swel Update(Swel 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.ttblswel.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblswel.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Swel record) { Swel.UpdateRowFromSwel(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Swel record) { this.repository.Delete(record); }
public Swel Update(Swel record) { return(this.repository.Update(record)); }
public Swel Insert(Swel record) { return(this.repository.Insert(record)); }
public void Delete(Swel record) { this.adapter.Delete(record); }
public Swel Update(Swel record) { return(this.adapter.Update(record)); }
public Swel Insert(Swel record) { return(this.adapter.Insert(record)); }