ASP.NET, gives web application developers access to the.NET Framework.
You can build applications on ASP.NET in the Google Cloud.
In this module, we'll show you how.
In this module, we'll look at how to create a Web application using
Microsoft's ASP.NET MVC Framework on Google Cloud Platform computer.
In module two of this class,
we looked at how to provision
our Microsoft Windows Server on Microsoft's SQL Server Infrastructure.
We've got some active directory domain controller,
a web server running Microsoft's Instant Information Services and a pair of Microsoft SQL
Server instances running in an always on availability group.
Now it's time to build an application.
We'll be coding a simple ASP.NET MVC application using C#.
Now if you're a developer working with Microsoft technologies,
you'll know that this is a great way to build a web application.
We'll use Microsoft Visual Studio as our Integrated Development Environment.
We'll publish our application to Internet Information Services using
Google Cloud tools for Visual Studio.
If you're not a developer just be aware that a web application to
live its application functionality using a standard web browser.
The browser accesses the application as a URL and
the server responds with dynamic outputs generated from data.
In our case, from data stored in Microsoft SQL Server.
ASP.NET MVC makes use of
a widely used application architecture called Model View Controller.
This architecture is frequently used when writing web applications.
It allows for a clean separation of concerns between modeling,
manipulating, and displaying data.
Here's the first participant of our MVC application - the Model.
In an MVC application,
the model's responsibility is to represent the application data and business rules.
In this example, we've created the model class using C# code contact.
We used this to build an address book application.
We can see that the contact class,
defines a set of properties,
and in our application we'll use this class to create contact objects.
Each contacts will have its own name,
email address, and cell phone number.
Of course, in a more full featured application,
the contacts would have many more characteristics,
but then it wouldn't fit on a single slide.
In addition, our contact has a numeric ID,
we'll make use of
Microsoft Entity Framework to simplify integration with Microsoft SQL Server.
The idea will be used to enable us to map
each contact object to a record in a database table.