public ItemAlloc BuildFromRow(DataRow row) { var returnRecord = ItemAlloc.BuildItemAllocFromRow(row); returnRecord = this.BuildExtraFromRow <ItemAlloc>(returnRecord, row); return(returnRecord); }
public ItemAlloc Insert(ItemAlloc record) { DataRow row = this.dataSet.ttblitem_alloc.Newttblitem_allocRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblitem_alloc.Addttblitem_allocRow((pdsitem_allocDataSet.ttblitem_allocRow)row); this.SaveChanges(); return(this.dataSet.ttblitem_alloc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblitem_alloc.Rows[0]) : null); }
public ItemAlloc GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); ItemAlloc itemAlloc = null; if (row != null) { itemAlloc = this.BuildFromRow(row); } return(itemAlloc); }
protected ItemAlloc Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblitem_alloc.AsEnumerable().SingleOrDefault(); ItemAlloc itemAlloc = null; if (row != null) { itemAlloc = this.BuildFromRow(row); } return(itemAlloc); }
public void Delete(ItemAlloc record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblitem_alloc.Newttblitem_allocRow(); ItemAlloc.BuildMinimalRow(ref row, record); this.dataSet.ttblitem_alloc.Addttblitem_allocRow((pdsitem_allocDataSet.ttblitem_allocRow)row); } row.Delete(); this.SaveChanges(); }
public ItemAlloc Update(ItemAlloc 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.ttblitem_alloc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblitem_alloc.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, ItemAlloc record) { ItemAlloc.UpdateRowFromItemAlloc(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(ItemAlloc record) { this.repository.Delete(record); }
public ItemAlloc Update(ItemAlloc record) { return(this.repository.Update(record)); }
public ItemAlloc Insert(ItemAlloc record) { return(this.repository.Insert(record)); }
public void Delete(ItemAlloc record) { this.adapter.Delete(record); }
public ItemAlloc Update(ItemAlloc record) { return(this.adapter.Update(record)); }
public ItemAlloc Insert(ItemAlloc record) { return(this.adapter.Insert(record)); }