C#

One more .Net driver  for connecting to MongoDB - NoRM - open-source library managed on GitHub.

Speciality of this project in linkage of .Net types and document model of MongoDB.

With NoRM very easy to manipulate with .Net type without necessity to copy them to/from documents for saving/resolving in/from DB like  MongoDB-CSharp Driver.

 

NoRM Home http://wiki.github.com/atheken/NoRM/

Sample

 

    var coll = (new Mongo(connString)).GetCollection<Product>();

    //create a new object to be added to the collection
    var obj = new Product();
    obj._id = ObjectId.NewObjectID();
    obj.Title = "Shoes";

    //save the object
    coll.Insert(obj);

    //find the object
    var obj2 = coll.FindOne(new { _id = obj._id}).First();

 

michael 16/05/2010 - 13:32

Nice example of using Dynamic in manipulation with  MongoDB-CSharp document

 

Instead

Document post = new Document(); 
post["Published"] = DateTime.UtcNow; 
DateTime published = ((DateTime)mongo_post["Published"]).ToLocalTime();

 

With Dynamic

dynamic post = new Document(); 
post.Published = DateTime.UtcNow; 
DateTime published = mongo_post.Published.ToLocalTime();

 

Dynamic document implementation http://www.box.net/shared/knqqd9jn9k

 

michael 14/04/2010 - 11:20

 

Modern projects need to manipulate with huge data amount, as result the necessity of high scalability and  high performance is very actual and always grows.

RDBMS databases cannot supply ultimate solution and alternative concepts like in NoSQL systems look very interesting.

 

The first interesting option is key-value stores like Google Big Table or Cassandra that provide fast and extremely large-scale solution but you can forget the comfort work with SQL queries like in RDBMS databases.  

 

Another option that tries to combine between advantages of RDBMS databases and key-values stores  is document-oriented databases like MonogDB.

 

MongoDB is development by commercial company as open-source project written in C++.

There are a lot of documentation, tutorials and samples on project site. 

 

michael 18/02/2010 - 18:15

This Beta 2 should be more stable. The VS team also put a lot of effort (so I hear) on performance improvements.

http://msdn.microsoft.com/en-us/vstudio/default.aspx

 

As always, Scott Guthrie knows how to give us the headlines, best way possible:

http://weblogs.asp.net/scottgu/archive/2009/10/19/vs-2010-and-net-4-0-beta-2.aspx

Itsu Tamam 20/10/2009 - 11:55

A very nice AOP library for .NET.

 

I'll elaborate on it in the near future.

Itsu Tamam 21/09/2009 - 07:31

I wish to embed MySQL database in a .NET SW. MySQL have a embedded product, but it is a C++ library, which really don't want to use directly. Does any one know of a .NET library, or even a managed C++ wrapper for this API I can use?

 

Thanks!

Itsu Tamam 16/09/2009 - 09:13

Do Factory is a very good website for design patterns, including diagrams and nice code samples.

 

A very nice design which not many uses is the Chain of Responsibility. Here's a link to a theoretical description of Chain of Responsibility pattern. A more real life example for a potential use can be found in this article, which demonstrates its use when implementing a validation chain.

Itsu Tamam 23/08/2009 - 11:47

Hey,
I need to create a regular expression with this rule: SpecificString*_1_*AnotherSpecificString. (the asterisk is any string in any length). how do I enforce such a rule using Regex.IsMatch()? (derives from System.Text.RegularExpressions)
I thought it should go like this: "SpecificString.*_1_.*.AnotherSpecificString" but it seems it passes things that shouldn't be passed..
Thanks!

omer 18/08/2009 - 20:24
Syndicate content