/// <summary> /// Deprecated Method for adding a new object to the beta_events EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTobeta_events(beta_events beta_events) { base.AddObject("beta_events", beta_events); }
public int insertBetaEvent(string event_desc, string submitted_by, string col1, string col2, string col3, string col4, string col5) { try { beta_events eventToAdd = new beta_events(); eventToAdd.event_desc = event_desc; eventToAdd.submitted_by = submitted_by; eventToAdd.timestamp = DateTime.Now; eventToAdd.col1 = col1; eventToAdd.col2 = col2; eventToAdd.col3 = col3; eventToAdd.col4 = col4; eventToAdd.col5 = col5; _db.beta_events.AddObject(eventToAdd); _db.SaveChanges(); } catch { return 0; } return 1; }
/// <summary> /// Create a new beta_events object. /// </summary> /// <param name="id">Initial value of the id property.</param> public static beta_events Createbeta_events(global::System.Int32 id) { beta_events beta_events = new beta_events(); beta_events.id = id; return beta_events; }