Book Image

Mobile Development with .NET - Second Edition

By : Can Bilgin
Book Image

Mobile Development with .NET - Second Edition

By: Can Bilgin

Overview of this book

Are you a .NET developer who wishes to develop mobile solutions without delving into the complexities of a mobile development platform? If so, this book is a perfect solution to help you build professional mobile apps without leaving the .NET ecosystem. Mobile Development with .NET will show you how to design, architect, and develop robust mobile applications for multiple platforms, including iOS, Android, and UWP using Xamarin, .NET Core, and Azure. With the help of real-world scenarios, you'll explore different phases of application development using Xamarin, from environment setup, design, and architecture to publishing. Throughout the book, you'll learn how to develop mobile apps using Xamarin and .NET Standard. You'll even be able to implement a web-based backend composed of microservices with .NET Core using various Azure services including, but not limited to, Azure Active Directory, Azure Functions. As you advance, you'll create data stores using popular database technologies such as Cosmos DB and data models such as the relational model and NoSQL. By the end of this mobile application development book, you'll be able to create cross-platform mobile applications that can be deployed as cloud-based PaaS and SaaS.
Table of Contents (25 chapters)
1
Section 1: Understanding .NET
5
Section 2: Xamarin and Xamarin.Forms
9
Section 3: Azure Cloud Services
14
Section 4: Advanced Mobile Development
18
Section 5: Application Life Cycle Management

Chapter 8: Creating a Datastore with Cosmos DB

Creating a data store is an essential part of both mobile and web application projects. Scalability, cost-effectiveness, and performance are three key factors that determine which database is appropriate for your application. Cosmos DB, with its wide range of scalability options and subscription models, can provide an ideal solution for mobile applications. Cosmos DB offers a multi-model and multi-API paradigm that allows applications to use multiple data models while storing application data with the most suited API and model for the application, such as SQL, Cassandra, Gremlin, or MongoDB.

In this chapter, we will talk about the basic concepts of Cosmos DB, analyze and experiment with data access models, and finally, we will start creating the data model and datastore for our application and implement the data access modules.

In this chapter, we will cover the following topics:

  • The basics of Cosmos DB
  • Data access models...