Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
 partial void DeletePosts(Posts instance);
Ejemplo n.º 3
0
 partial void UpdatePosts(Posts instance);
Ejemplo n.º 4
0
 partial void InsertPosts(Posts instance);
Ejemplo n.º 5
0
		private void detach_Posts(Posts entity)
		{
			this.SendPropertyChanging();
			entity.AspNetUser = null;
		}
Ejemplo n.º 6
0
		private void attach_Posts(Posts entity)
		{
			this.SendPropertyChanging();
			entity.AspNetUser = this;
		}