public Arbcl Insert(Arbcl record) { DataRow row = this.dataSet.ttblarbcl.NewttblarbclRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblarbcl.AddttblarbclRow((pdsarbclDataSet.ttblarbclRow)row); this.SaveChanges(); return this.dataSet.ttblarbcl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarbcl.Rows[0]) : null; }
public Arbcl GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Arbcl arbcl = null; if (row != null) { arbcl = this.BuildFromRow(row); } return arbcl; }
protected Arbcl Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblarbcl.AsEnumerable().SingleOrDefault(); Arbcl arbcl = null; if (row != null) { arbcl = this.BuildFromRow(row); } return arbcl; }
public void Delete(Arbcl record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblarbcl.NewttblarbclRow(); Arbcl.BuildMinimalRow(ref row, record); this.dataSet.ttblarbcl.AddttblarbclRow((pdsarbclDataSet.ttblarbclRow)row); } row.Delete(); this.SaveChanges(); }
public Arbcl Update(Arbcl 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.ttblarbcl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarbcl.Rows[0]) : null; } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return null; }
public void Delete(Arbcl record) { this.repository.Delete(record); }
public Arbcl Update(Arbcl record) { return(this.repository.Update(record)); }
public Arbcl Insert(Arbcl record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Arbcl record) { Arbcl.UpdateRowFromArbcl(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Arbcl BuildFromRow(DataRow row) { var returnRecord = Arbcl.BuildArbclFromRow(row); returnRecord = this.BuildExtraFromRow<Arbcl>(returnRecord, row); return returnRecord; }
public void Delete(Arbcl record) { this.adapter.Delete(record); }
public Arbcl Update(Arbcl record) { return(this.adapter.Update(record)); }
public Arbcl Insert(Arbcl record) { return(this.adapter.Insert(record)); }