Curious about using MongoDB with .NET applications? This course is a continuation of my prior course "Using MongoDB with ASP.NET MVC." The purpose of this course is to jump start your understanding of the latest version 2 of the MongoDB C# driver. This course provides a fast paced comparison of the v1 MongoDB C# driver to the latest v2 MongoDB C# driver using the example MVC application built in "Using MongoDB with ASP.NET MVC." You'll also learn how to upgrade an app written with the v1 driver to v2.
Wes Higbee is passionate about helping companies achieve remarkable results with technology and software. He’s had extensive experience developing software and working with teams to improve how software is developed to meet business objectives. Wes launched Full City Tech to leverage his expertise to help companies delight customers.
Storing Files with GridFS Recently in the 2. 2 version of the C# MongoDB driver, storing files and accessing files with GridFS has been overhauled as well. In this module we'll take a look at these changes and how to use the new APIs to access GridFS, and of course, you'll have access to both asynchronous APIs to GridFS and then new synchronous operations that match the new asynchronous operations. One of the notable changes is that GridFS has been split out into its own package and when we updated to the new MongoDB 2. 0 series of the driver, while we still have the Legacy driver and the new packages for the driver-driver core and BSON packages, we don't have the new GridFS API; we'll have to install that explicitly. We'll do that first. Then in this module we'll take a look at how to upload an image using the new APIs. We'll also talk about where you store content types now. There has been a change with regard to storing metadata for files. Then we'll take a look at how we can download an image in our rental application. We'll take a look at how we can delete files or delete images associated with our rentals, and then last, we'll wrap up by removing the Legacy driver, because at this point we'll now have updated all the code in this example application to use the new 2 series of the driver, so we'll go ahead and remove the Legacy driver.