public Swao GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Swao swao = null; if (row != null) { swao = this.BuildFromRow(row); } return(swao); }
protected Swao Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblswao.AsEnumerable().SingleOrDefault(); Swao swao = null; if (row != null) { swao = this.BuildFromRow(row); } return(swao); }
public void Delete(Swao record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblswao.NewttblswaoRow(); Swao.BuildMinimalRow(ref row, record); this.dataSet.ttblswao.AddttblswaoRow((pdsswaoDataSet.ttblswaoRow)row); } row.Delete(); this.SaveChanges(); }
public Swao Update(Swao 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.ttblswao.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblswao.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Swao record) { Swao.UpdateRowFromSwao(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Swao record) { this.adapter.Delete(record); }
public Swao Update(Swao record) { return(this.adapter.Update(record)); }
public Swao Insert(Swao record) { return(this.adapter.Insert(record)); }
public Swao Insert(Swao record) { return(this.repository.Insert(record)); }
public void Delete(Swao record) { this.repository.Delete(record); }
public Swao Update(Swao record) { return(this.repository.Update(record)); }