Example #1
0
        public static Posts getPostById(int id)
        {
            Posts targetPost = postContext.Posts.Where(i => i.Id == id).Single();

            Posts newPost = new Posts()
            {
                Id = targetPost.Id,
                UserId = targetPost.UserId,
                Content = targetPost.Content,
                JsonPicture = targetPost.JsonPicture
            };

            return newPost;
        }
Example #2
0
 partial void DeletePosts(Posts instance);
Example #3
0
 partial void UpdatePosts(Posts instance);
Example #4
0
 partial void InsertPosts(Posts instance);
Example #5
0
		private void detach_Posts(Posts entity)
		{
			this.SendPropertyChanging();
			entity.AspNetUser = null;
		}
Example #6
0
		private void attach_Posts(Posts entity)
		{
			this.SendPropertyChanging();
			entity.AspNetUser = this;
		}