public Sakeytot BuildFromRow(DataRow row) { var returnRecord = Sakeytot.BuildSakeytotFromRow(row); returnRecord = this.BuildExtraFromRow <Sakeytot>(returnRecord, row); return(returnRecord); }
public Sakeytot Insert(Sakeytot record) { DataRow row = this.dataSet.ttblsakeytot.NewttblsakeytotRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblsakeytot.AddttblsakeytotRow((pdssakeytotDataSet.ttblsakeytotRow)row); this.SaveChanges(); return(this.dataSet.ttblsakeytot.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsakeytot.Rows[0]) : null); }
public Sakeytot GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Sakeytot sakeytot = null; if (row != null) { sakeytot = this.BuildFromRow(row); } return(sakeytot); }
protected Sakeytot Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblsakeytot.AsEnumerable().SingleOrDefault(); Sakeytot sakeytot = null; if (row != null) { sakeytot = this.BuildFromRow(row); } return(sakeytot); }
public void Delete(Sakeytot record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblsakeytot.NewttblsakeytotRow(); Sakeytot.BuildMinimalRow(ref row, record); this.dataSet.ttblsakeytot.AddttblsakeytotRow((pdssakeytotDataSet.ttblsakeytotRow)row); } row.Delete(); this.SaveChanges(); }
public Sakeytot Update(Sakeytot 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.ttblsakeytot.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsakeytot.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Sakeytot Insert(Sakeytot record) { return(this.repository.Insert(record)); }
public void Delete(Sakeytot record) { this.repository.Delete(record); }
public Sakeytot Update(Sakeytot record) { return(this.repository.Update(record)); }
public void Delete(Sakeytot record) { this.adapter.Delete(record); }
public Sakeytot Update(Sakeytot record) { return(this.adapter.Update(record)); }
public Sakeytot Insert(Sakeytot record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Sakeytot record) { Sakeytot.UpdateRowFromSakeytot(ref row, record); this.ExtraUpdateToRow(ref row, record); }