public UserInformation GetUserInformation(string guId) { CO5027Entities db = new CO5027Entities(); UserInformation info = (from x in db.UserInformations where x.GUID == guId select x).FirstOrDefault(); return(info); }
public void InsertUserInformation(UserInformation info) { CO5027Entities db = new CO5027Entities(); db.UserInformations.Add(info); db.SaveChanges(); }
protected void btnAddEntry_Click(object sender, EventArgs e) { BlogEntry entry = new BlogEntry(); entry.Title = txtTitle.Text; entry.Date = DateTime.Now; CO5027Entities db = new CO5027Entities(); db.BlogEntries.Add(entry); db.SaveChanges(); }