Book Image

ASP.NET Core Essentials

By : Shahed Chowdhuri
Book Image

ASP.NET Core Essentials

By: Shahed Chowdhuri

Overview of this book

<p>ASP.NET Core is the latest collection of Microsoft’s web application development technologies. When you’re trying to reach a broad spectrum of users with a robust web application, ASP.NET Core is there to help you build that application. With the ability to cater to users on desktop, tablet, or smartphone platforms, you can put together a solution that works well anywhere.</p> <p>This book is what you need to get started developing ASP.NET Core applications was quickly as possible; starting by introducing the software and how it can be used in today’s modern world of web applications and smartphone apps. Walking you through the benefits of a Web API to support both applications and mobile apps to give you a solid understanding of the tech to build upon as you see what ASP.NET Core can do for you.</p> <p>The book wraps up with practical guidelines for the use of database technologies, unit tests, security best practices, and cloud deployments for the real world.</p>
Table of Contents (15 chapters)
ASP.NET Core Essentials
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Object-relational mapping in .NET


If you've used EF or any object-relational mapper (ORM) earlier, you may skim this section and move on to the next section. But if you're new to ORM frameworks, this section is for you.

An ORM such as EF makes it easy for you to interact with your database from within your application code. The following screenshot illustrates ORM:

Why use an ORM?

It's perfectly feasible to build a fully functional web application without any ORM at all. You could use straight ADO.NET or raw SQL to talk to your database from your application code. You could write SQL code to create your database objects and relationships. You could keep all your database logic in the database by heavy use of stored procedures and functions or you could use an ORM such as EF and take advantage of a Code First approach.

While database administrators might scoff at the use of an ORM, developers should feel confident that they will gain more power and control of how their database entities are...