public void AddLogin(int userID, string type) { hio_event newevent = new hio_event(); newevent.UserID = userID; newevent.Event = type; newevent.Datetime = DateTime.Now; db.hio_events.InsertOnSubmit(newevent); db.SubmitChanges(); }
public void APIcall(int userID) { hio_event newevent = new hio_event(); newevent.UserID = userID; newevent.Event = "API"; newevent.Datetime = DateTime.Now; db.hio_events.InsertOnSubmit(newevent); db.SubmitChanges(); }
public void AddSnow(int UserID, string cm, string location, string name) { hio_event newevt = new hio_event(); newevt.Datetime = DateTime.Now; newevt.Event = cm; newevt.Type = "Snow"; newevt.UserID = UserID; db.hio_events.InsertOnSubmit(newevt); db.SubmitChanges(); }
public void AddColdest(int UserID, string temp, string location, string name) { hio_event newevt = new hio_event(); newevt.Datetime = DateTime.Now; newevt.Event = temp; newevt.Type = "Temp"; newevt.UserID = UserID; db.hio_events.InsertOnSubmit(newevt); db.SubmitChanges(); }
public void AddLogin(int userID, string type) { hio_event newevent = new hio_event(); newevent.UserID = userID; newevent.Event = type; newevent.Datetime = DateTime.Now; db.hio_events.InsertOnSubmit(newevent); if (type == "Existing") { var user = db.Users .Where(u => u.UserID == userID) .First(); user.Timestamp = DateTime.Now; } db.SubmitChanges(); }
public void Add(hio_event ev) { db.hio_events.InsertOnSubmit(ev); }
partial void Deletehio_event(hio_event instance);
partial void Updatehio_event(hio_event instance);
partial void Inserthio_event(hio_event instance);
private void detach_hio_events(hio_event entity) { this.SendPropertyChanging(); entity.User = null; }
private void attach_hio_events(hio_event entity) { this.SendPropertyChanging(); entity.User = this; }