public Empmst BuildFromRow(DataRow row) { var returnRecord = Empmst.BuildEmpmstFromRow(row); returnRecord = this.BuildExtraFromRow <Empmst>(returnRecord, row); return(returnRecord); }
public Empmst Insert(Empmst record) { DataRow row = this.dataSet.ttblempmst.NewttblempmstRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblempmst.AddttblempmstRow((pdsempmstDataSet.ttblempmstRow)row); this.SaveChanges(); return(this.dataSet.ttblempmst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblempmst.Rows[0]) : null); }
public Empmst GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Empmst empmst = null; if (row != null) { empmst = this.BuildFromRow(row); } return(empmst); }
protected Empmst Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblempmst.AsEnumerable().SingleOrDefault(); Empmst empmst = null; if (row != null) { empmst = this.BuildFromRow(row); } return(empmst); }
private void DeleteUseRowID(Empmst record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblempmst.NewttblempmstRow(); Empmst.BuildMinimalRow(ref row, record); this.dataSet.ttblempmst.AddttblempmstRow((pdsempmstDataSet.ttblempmstRow)row); } row.Delete(); this.SaveChanges(); }
public Empmst Update(Empmst record) { var row = this.GetRowByRowpointer(record.rowpointer, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblempmst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblempmst.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Empmst record) { this.adapter.Delete(record); }
public Empmst Update(Empmst record) { return(this.adapter.Update(record)); }
public Empmst Insert(Empmst record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Empmst record) { Empmst.UpdateRowFromEmpmst(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Empmst record) { this.repository.Delete(record); }
public Empmst Update(Empmst record) { return(this.repository.Update(record)); }
public Empmst Insert(Empmst record) { return(this.repository.Insert(record)); }