예제 #1
0
 public bool Modify(Blog model)
 {
     IBlogRepository iBlogRepos = IoCContext.Container.Resolve<IBlogRepository>();
     Blog oldModel = iBlogRepos.GetSingle(m => m.blogId == model.blogId);
     oldModel.Content = model.Content;
     return iBlogRepos.Update(model, false) > 0;
 }
예제 #2
0
파일: Model1.cs 프로젝트: endlessido/MEDIA
 /// <summary>
 /// Create a new Blog object.
 /// </summary>
 /// <param name="blogId">Initial value of the blogId property.</param>
 public static Blog CreateBlog(global::System.Int32 blogId)
 {
     Blog blog = new Blog();
     blog.blogId = blogId;
     return blog;
 }
예제 #3
0
파일: Model1.cs 프로젝트: endlessido/MEDIA
 /// <summary>
 /// Deprecated Method for adding a new object to the Blogs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToBlogs(Blog blog)
 {
     base.AddObject("Blogs", blog);
 }