public Jmelo BuildFromRow(DataRow row) { var returnRecord = Jmelo.BuildJmeloFromRow(row); returnRecord = this.BuildExtraFromRow <Jmelo>(returnRecord, row); return(returnRecord); }
public Jmelo Insert(Jmelo record) { DataRow row = this.dataSet.ttbljmelo.NewttbljmeloRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbljmelo.AddttbljmeloRow((pdsjmeloDataSet.ttbljmeloRow)row); this.SaveChanges(); return(this.dataSet.ttbljmelo.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbljmelo.Rows[0]) : null); }
public Jmelo GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Jmelo jmelo = null; if (row != null) { jmelo = this.BuildFromRow(row); } return(jmelo); }
protected Jmelo Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbljmelo.AsEnumerable().SingleOrDefault(); Jmelo jmelo = null; if (row != null) { jmelo = this.BuildFromRow(row); } return(jmelo); }
public void Delete(Jmelo record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbljmelo.NewttbljmeloRow(); Jmelo.BuildMinimalRow(ref row, record); this.dataSet.ttbljmelo.AddttbljmeloRow((pdsjmeloDataSet.ttbljmeloRow)row); } row.Delete(); this.SaveChanges(); }
public Jmelo Update(Jmelo 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.ttbljmelo.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbljmelo.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Jmelo record) { Jmelo.UpdateRowFromJmelo(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Jmelo record) { this.adapter.Delete(record); }
public Jmelo Update(Jmelo record) { return(this.adapter.Update(record)); }
public Jmelo Insert(Jmelo record) { return(this.adapter.Insert(record)); }
public void Delete(Jmelo record) { this.repository.Delete(record); }
public Jmelo Update(Jmelo record) { return(this.repository.Update(record)); }
public Jmelo Insert(Jmelo record) { return(this.repository.Insert(record)); }