Click here to Skip to main content
12,454,164 members (57,451 online)
Click here to Skip to main content
Articles » Database » NoSQL » General » Downloads

Stats

250.2K views
8.8K downloads
163 bookmarked
Posted

MongoDB and C#

, 15 Jun 2010 CPOL
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...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160826.1 | Last Updated 15 Jun 2010
Article Copyright 2010 by Craig G. Wilson
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid