Skip to main content

Posts

Showing posts with the label MongoDb aggregation if else

MongoDB CRUD Operation in ASP MVC.Net

Table of Content :- 1.       MongoDB Setup and Installations 2.       Add a User Registration Page and Save Records in MongoDB 3.       Get User Records from MongoDB through LINQ 4.       Edit/Update Records in MongoDB 5.       Delete/Drop Records from MongoDB through LINQ MongoDB Setup and Installations :- 1.       Download MongoDB using below link, http://www.mongodb.org/downloads?_ga=1.20290616.1294468948.1419862328 2.       Setup MongoDB as per below link instructions, http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/ Stayed Informed – YouTube Video link for Setup MongoDB Stayed Informed - Why use MongoDB in MVC .Net? The main Reason is to Use MongoDB with ASP.Net MVC are, 1.       So Faster Development. 2.    ...

Why use MongoDB in MVC.Net?

“The MongoDB is now most popular cross platform NoSQL open source database management system. The MongoDB is written using the C++ language and developed by 10gen but now it's called MongoDB Inc .” Stayed Informed - 117 Recommend MongoDB Tutorial for Beginners Now, coming back to the point, “Why use MongoDB in MVC?”. The main reason is to use MongoDB with ASP.Net MVC are, 1.       It is so Faster Development. 2.       It is so Minimal Migrations. 3.       It is much Easier Collaborations. 4.       It is so Maintainable Design. 5.       It is much Rich Behaviours. 6.       Scalability. 7.       GridFS Example Source code for MongoDb with MVC 5 as, using System ; using System.Web.Mvc ; using MongoDB.Driver ; using MongoDB.Bson ; namespace MongoDemoApp.Controllers { ...

3 Best Ways to DROP Remove MongoDB Collection [DROP]

“How to “ DROP ” collection from database MongoDB”? In this section, I am going to describes “ DROP”  or DELETE collection in MongoDB. Below version 3.4, does not provide any user interface like SQL Server but  MongoDB 3.4  solve this problem with help of “ Robomongo Management Tool” . As per my understanding, it is a great achievement of MongoDB to provide us “Robomongo Management Tool”. You can  download  Robomongo  MongoDB tool and install Robomongo in your machine and start to Create, Rename and DROP MongoDB database, collections, functions and Users. In the MongoDB, the command “ db.collection.drop() ” is used to DROP a database collection. Syntax : - [ db.collection_name.drop() ] The “ DROP ” method will returns true, if successfully dropped! Otherwise return false! 3 Ways to “DROP” MongoDB Database:- 1.       “Use” of Robomongo Management Tool 2.       “Use...

3 Best Ways to CREATE MongoDB Collections [Backup/Restore]

“ How do you CREATE  MongoDB Collections ”? ” How many types to CREATE a collection ”? In this section, I am going to describes Create Collections in MongoDB. Below version 3.4, does not provide any user interface like SQL Server or   Robomongo   but   MongoDB 3.4   solve this problem with help of   Robomongo Management Tool . As per my understanding, it is a great achievement of MongoDB to provide us Robomongo Management Tool. You can   Download   Robomongo Management Tool and install MongoDB & Robomongo in your machine and start to create MongoDB database, create MongoDB collections, create MongoDB functions and create MongoDB users. [ Video URL ] - CREATE MongoDB Collection using “ Robomongo Tool ”! Keep in Mind for MongoDB collections; You do not need to create a collection because MongoDB creates automatically , when you insert a document in a collection. “ 3 Ways ” to CREATE MongoDB collection : 1.  ...

3 Best Ways to Create MongoDB Database [CREATE]

“How to Create Database in MongoDB”? “How many types to Create Database”? “How”, “When” and “Types to create database”? In this section, I am going to describes Create Database in MongoDB. Below version 3.4, does not provide any user interface like SQL Server or Robomongo but MongoDB 3.4 solve this problem with help of Robomongo Management Tool . As per my understanding, it is a great achievement of MongoDB to provide us Robomongo Management Tool. [ Video URL ] - CREATE Database MongoDB Using “ Robomongo Tool ”! You can Download Robomongo Management Tool and install MongoDB & Robomongo in your machine and start to create MongoDB database, create MongoDB collections, create MongoDB functions and create MongoDB users. 3 Ways to Create MongoDB Database:- 1.       “Use” of Robomongo Management Tool. 2.       “Use” Command Line. 3.       “Use” ASP.Net C# Code. Here you ca...