コード例 #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);
        }
コード例 #2
0
        public void InsertUserInformation(UserInformation info)
        {
            CO5027Entities db = new CO5027Entities();

            db.UserInformations.Add(info);
            db.SaveChanges();
        }
コード例 #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();
        }