Exemple #1
0
        public override void PostBlogResponse(BlogResponse blogResponse)
        {
            MembershipUser currentUser = Membership.GetUser(blogResponse.UserName);

            IITBlog.Classes.BlogResponse newBlogResponse = new IITBlog.Classes.BlogResponse
            {
                BlogID      = blogResponse.BlogID,
                UserName    = blogResponse.UserName,
                RecCreation = blogResponse.RecCreation,
                IP          = blogResponse.IPAddress,
                Response    = blogResponse.ResponseText
            };
            db.BlogResponses.InsertOnSubmit(newBlogResponse);
            db.SubmitChanges();
        }
 public override void PostBlogResponse(BlogResponse blogResponse)
 {
     MembershipUser currentUser = Membership.GetUser(blogResponse.UserName);
     IITBlog.Classes.BlogResponse newBlogResponse = new IITBlog.Classes.BlogResponse
     {
         BlogID = blogResponse.BlogID,
         UserName = blogResponse.UserName,
         RecCreation = blogResponse.RecCreation,
         IP = blogResponse.IPAddress,
         Response = blogResponse.ResponseText
     };
     db.BlogResponses.InsertOnSubmit(newBlogResponse);
     db.SubmitChanges();
 }
		private void attach_BlogResponses(BlogResponse entity)
		{
			this.SendPropertyChanging();
			entity.Blog = this;
		}
		private void detach_BlogResponses(BlogResponse entity)
		{
			this.SendPropertyChanging();
			entity.Blog = null;
		}
		private void detach_BlogResponses(BlogResponse entity)
		{
			this.SendPropertyChanging();
			entity.aspnet_Membership = null;
		}