Click here to Skip to main content
13,150,137 members (74,662 online)
Click here to Skip to main content
Articles » Database » NoSQL » General » Downloads

Stats

317.5K views
9.8K downloads
170 bookmarked
Posted 14 Jun 2010

MongoDB and C#

, 15 Jun 2010
Using MongoDB from C#.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using MongoDB;

namespace MongoDBBlog.Tester
{
    public class Post 
    {
        public Oid Id { get; private set; }
        
        public string Title { get; set; }
        
        public string Body { get; set; }

        public int CharCount { get; set; }
        
        public IList<Comment> Comments { get; set; }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Craig G. Wilson
Web Developer
United States United States
I work at a financial services firm using mostly .NET. I enjoy my job immensely and love teaching, training, and mentoring younger developers.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.170924.2 | Last Updated 15 Jun 2010
Article Copyright 2010 by Craig G. Wilson
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid