public EventSetup BuildFromRow(DataRow row) { var returnRecord = EventSetup.BuildEventSetupFromRow(row); returnRecord = this.BuildExtraFromRow <EventSetup>(returnRecord, row); return(returnRecord); }
public EventSetup Insert(EventSetup record) { DataRow row = this.dataSet.ttblevent_setup.Newttblevent_setupRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblevent_setup.Addttblevent_setupRow((pdsevent_setupDataSet.ttblevent_setupRow)row); this.SaveChanges(); return(this.dataSet.ttblevent_setup.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblevent_setup.Rows[0]) : null); }
public void Update(EventSetup eventSetup, int userId, string userName, int setupId) { var Setup = EventSetupById(userId, userName, setupId); Setup.EventSetupEN = eventSetup.EventSetupEN; Setup.EventSetupAR = eventSetup.EventSetupAR; Setup.ModifierId = userId; Setup.ModificationDate = DateTime.Now; _context.SaveChanges(); }
public EventSetup GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); EventSetup eventSetup = null; if (row != null) { eventSetup = this.BuildFromRow(row); } return(eventSetup); }
public void AddEventSetup(EventSetup eventSetup, int userId, string userName, int ConcernId) { eventSetup.CreatorId = userId; eventSetup.CreationDate = DateTime.Now; eventSetup.IsDelete = 0; eventSetup.ConcernId = ConcernId; eventSetup.ModificationDate = DateTime.Now; eventSetup.ModifierId = userId; _context.EventSetups.Add(eventSetup); _context.SaveChanges(); }
protected EventSetup Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblevent_setup.AsEnumerable().SingleOrDefault(); EventSetup eventSetup = null; if (row != null) { eventSetup = this.BuildFromRow(row); } return(eventSetup); }
public void Delete(EventSetup record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblevent_setup.Newttblevent_setupRow(); EventSetup.BuildMinimalRow(ref row, record); this.dataSet.ttblevent_setup.Addttblevent_setupRow((pdsevent_setupDataSet.ttblevent_setupRow)row); } row.Delete(); this.SaveChanges(); }
public EventSetup Update(EventSetup 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.ttblevent_setup.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblevent_setup.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, EventSetup record) { EventSetup.UpdateRowFromEventSetup(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(EventSetup record) { this.adapter.Delete(record); }
public EventSetup Update(EventSetup record) { return(this.adapter.Update(record)); }
public EventSetup Insert(EventSetup record) { return(this.adapter.Insert(record)); }
public void Delete(EventSetup record) { this.repository.Delete(record); }
public EventSetup Update(EventSetup record) { return(this.repository.Update(record)); }
public EventSetup Insert(EventSetup record) { return(this.repository.Insert(record)); }