Kayıtlar

Nisan 8, 2015 tarihine ait yayınlar gösteriliyor

M101N: MONGODB FOR .NET DEVELOPERS questions 3.2

HOMEWORK: HOMEWORK 3.2: MAKING YOUR BLOG ACCEPT POSTS In this homework you will be enhancing the blog project to insert entries into the posts collection. After this, the blog will work. It will allow you to add blog posts with a title, content, and tags and have it be added to the posts collection properly. We have provided the code that creates users and allows you to login (the assignment from last week). To get started, please download the handout and unpack. The areas where you need to add code are marked with XXX. You need only touch the Post.cs file, the Comments.cs file, and the HomeController.cs file. There are seven locations for you to add code for this problem: 5 in HomeController.cs 1 in Post.cs 1 in Comment.cs Here is an example of a valid blog post. > db.posts.find().pretty() { "_id" : ObjectId("54c298ec122ea911588b7970"), "Author" : "Craig", "Title" : "Frist!!!",