public Jmel BuildFromRow(DataRow row) { var returnRecord = Jmel.BuildJmelFromRow(row); returnRecord = this.BuildExtraFromRow <Jmel>(returnRecord, row); return(returnRecord); }
public Jmel Insert(Jmel record) { DataRow row = this.dataSet.ttbljmel.NewttbljmelRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbljmel.AddttbljmelRow((pdsjmelDataSet.ttbljmelRow)row); this.SaveChanges(); return(this.dataSet.ttbljmel.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbljmel.Rows[0]) : null); }
public Jmel GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Jmel jmel = null; if (row != null) { jmel = this.BuildFromRow(row); } return(jmel); }
protected Jmel Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbljmel.AsEnumerable().SingleOrDefault(); Jmel jmel = null; if (row != null) { jmel = this.BuildFromRow(row); } return(jmel); }
public void Delete(Jmel record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbljmel.NewttbljmelRow(); Jmel.BuildMinimalRow(ref row, record); this.dataSet.ttbljmel.AddttbljmelRow((pdsjmelDataSet.ttbljmelRow)row); } row.Delete(); this.SaveChanges(); }
public Jmel Update(Jmel 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.ttbljmel.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbljmel.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Jmel record) { this.repository.Delete(record); }
public Jmel Update(Jmel record) { return(this.repository.Update(record)); }
public Jmel Insert(Jmel record) { return(this.repository.Insert(record)); }
public Jmel Update(Jmel record) { return(this.adapter.Update(record)); }
public Jmel Insert(Jmel record) { return(this.adapter.Insert(record)); }
public void Delete(Jmel record) { this.adapter.Delete(record); }
public void UpdateToRow(ref DataRow row, Jmel record) { Jmel.UpdateRowFromJmel(ref row, record); this.ExtraUpdateToRow(ref row, record); }