public Movemst BuildFromRow(DataRow row) { var returnRecord = Movemst.BuildMovemstFromRow(row); returnRecord = this.BuildExtraFromRow <Movemst>(returnRecord, row); return(returnRecord); }
public Movemst Insert(Movemst record) { DataRow row = this.dataSet.ttblmovemst.NewttblmovemstRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblmovemst.AddttblmovemstRow((pdsmovemstDataSet.ttblmovemstRow)row); this.SaveChanges(); return(this.dataSet.ttblmovemst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblmovemst.Rows[0]) : null); }
public Movemst GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Movemst movemst = null; if (row != null) { movemst = this.BuildFromRow(row); } return(movemst); }
protected Movemst Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblmovemst.AsEnumerable().SingleOrDefault(); Movemst movemst = null; if (row != null) { movemst = this.BuildFromRow(row); } return(movemst); }
public void Delete(Movemst record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblmovemst.NewttblmovemstRow(); Movemst.BuildMinimalRow(ref row, record); this.dataSet.ttblmovemst.AddttblmovemstRow((pdsmovemstDataSet.ttblmovemstRow)row); } row.Delete(); this.SaveChanges(); }
public Movemst Update(Movemst 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.ttblmovemst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblmovemst.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Movemst Insert(Movemst record) { return(this.adapter.Insert(record)); }
public void Delete(Movemst record) { this.adapter.Delete(record); }
public Movemst Update(Movemst record) { return(this.adapter.Update(record)); }
public void UpdateToRow(ref DataRow row, Movemst record) { Movemst.UpdateRowFromMovemst(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Movemst record) { this.repository.Delete(record); }
public Movemst Update(Movemst record) { return(this.repository.Update(record)); }
public Movemst Insert(Movemst record) { return(this.repository.Insert(record)); }