public Swoeel BuildFromRow(DataRow row) { var returnRecord = Swoeel.BuildSwoeelFromRow(row); returnRecord = this.BuildExtraFromRow <Swoeel>(returnRecord, row); return(returnRecord); }
public Swoeel Insert(Swoeel record) { DataRow row = this.dataSet.ttblswoeel.NewttblswoeelRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblswoeel.AddttblswoeelRow((pdsswoeelDataSet.ttblswoeelRow)row); this.SaveChanges(); return(this.dataSet.ttblswoeel.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblswoeel.Rows[0]) : null); }
public Swoeel GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Swoeel swoeel = null; if (row != null) { swoeel = this.BuildFromRow(row); } return(swoeel); }
protected Swoeel Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblswoeel.AsEnumerable().SingleOrDefault(); Swoeel swoeel = null; if (row != null) { swoeel = this.BuildFromRow(row); } return(swoeel); }
public void Delete(Swoeel record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblswoeel.NewttblswoeelRow(); Swoeel.BuildMinimalRow(ref row, record); this.dataSet.ttblswoeel.AddttblswoeelRow((pdsswoeelDataSet.ttblswoeelRow)row); } row.Delete(); this.SaveChanges(); }
public Swoeel Update(Swoeel 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.ttblswoeel.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblswoeel.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Swoeel record) { this.adapter.Delete(record); }
public Swoeel Update(Swoeel record) { return(this.adapter.Update(record)); }
public Swoeel Insert(Swoeel record) { return(this.adapter.Insert(record)); }
public void Delete(Swoeel record) { this.repository.Delete(record); }
public Swoeel Update(Swoeel record) { return(this.repository.Update(record)); }
public Swoeel Insert(Swoeel record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Swoeel record) { Swoeel.UpdateRowFromSwoeel(ref row, record); this.ExtraUpdateToRow(ref row, record); }