Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public void InsertUserInformation(UserInformation info)
        {
            CO5027Entities db = new CO5027Entities();

            db.UserInformations.Add(info);
            db.SaveChanges();
        }
Esempio n. 3
0
        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();
        }