public Jmelp BuildFromRow(DataRow row) { var returnRecord = Jmelp.BuildJmelpFromRow(row); returnRecord = this.BuildExtraFromRow <Jmelp>(returnRecord, row); return(returnRecord); }
public Jmelp Insert(Jmelp record) { DataRow row = this.dataSet.ttbljmelp.NewttbljmelpRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbljmelp.AddttbljmelpRow((pdsjmelpDataSet.ttbljmelpRow)row); this.SaveChanges(); return(this.dataSet.ttbljmelp.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbljmelp.Rows[0]) : null); }
public Jmelp GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Jmelp jmelp = null; if (row != null) { jmelp = this.BuildFromRow(row); } return(jmelp); }
protected Jmelp Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbljmelp.AsEnumerable().SingleOrDefault(); Jmelp jmelp = null; if (row != null) { jmelp = this.BuildFromRow(row); } return(jmelp); }
public void Delete(Jmelp record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbljmelp.NewttbljmelpRow(); Jmelp.BuildMinimalRow(ref row, record); this.dataSet.ttbljmelp.AddttbljmelpRow((pdsjmelpDataSet.ttbljmelpRow)row); } row.Delete(); this.SaveChanges(); }
public Jmelp Update(Jmelp 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.ttbljmelp.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbljmelp.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Jmelp record) { this.adapter.Delete(record); }
public Jmelp Update(Jmelp record) { return(this.adapter.Update(record)); }
public Jmelp Insert(Jmelp record) { return(this.adapter.Insert(record)); }
public void Delete(Jmelp record) { this.repository.Delete(record); }
public Jmelp Update(Jmelp record) { return(this.repository.Update(record)); }
public Jmelp Insert(Jmelp record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Jmelp record) { Jmelp.UpdateRowFromJmelp(ref row, record); this.ExtraUpdateToRow(ref row, record); }