You are on page 1of 17

Introducing .


In this lesson, you will learn to:
• Identify the types of application architectures
• Identify the components of the .NET Framework
• List the advantages of the .NET Framework
• Identify the components of the Visual Studio .NET Integrated Development
Environment (IDE)
• List the features of VC# .NET

These three layers form the base of the models or architectures used in application development. • Business services ensures that the back-end does not receive incorrect data. Applications may vary from single-tier desktop applications to multi-tier applications. • Data services comprises data and the functions for manipulating the data. it is also called presentation layer.NET Types of Application Architectures • • • • The functions performed by an application can be divided into three categories: • User services provides interactive user interface. Therefore. . Each category is implemented as a layer in an application.Introducing .

business. . and data service layers.Introducing . Single-tier applications are also called monolithic applications.NET Single-Tier Architecture • • In single-tier architecture. a single executable file handles all functions relating to the user.

Introducing .NET Two-Tier Architecture • • The two-tier architecture divides an application into the following two components: • Client: Implements the user interface • Server: Stores data In the two-tier architecture. the business services layer may be implemented in one of the following ways: • By using fat client • By using fat server • By dividing the business services between the user services and the data services .

NET Three-Tier Architecture • • • • In three-tier architecture. either on the same machine or on different machines. in turn. all the three service layers reside separately. The front-end only interacts with business logic.Introducing . interacts with the database. . The business logic validates the data sent by the interfaces and forwards it to the database if it conforms to the requirements. The user interface interacts with the business logic. which.

It has multiple servers handling business services.NET N-Tier Architecture • • • • An n-tier application architecture is not restricted to a specific number of layers. Therefore. most modern enterprise applications are based on the n-tier application architecture.Introducing . The advantages of n-tier architecture are: • Extensibility • Resilience to change • Maintainability • Scalability These applications serve organization-specific requirements. .

Dynamic Linking: Windows application is linked to the existing library functions at run time. an event gets generated and the corresponding code is executed.Introducing . .NET Two of the most important features of the Windows environment that enable applications to interact effectively with the user are: Event-Driven Programming: Based on user’s input.

NET The .NET applications by using programming languages such as Visual Basic.NET Services . Visual C#. .NET.NET offers a complete suite for developing and deploying applications. These products aim at allowing developers to create numerous applications.NET Framework developing .Introducing .NET Framework The . Microsoft has introduced Visual Studio .NET Products . which is a tool for This suite consists of the: . and Visual C++.

and personal references to the passport authentication service.NET Framework (Contd. known as My Services.NET Framework Microsoft has come up with its own set of Web services. These services are based on the Microsoft Passport Authentication service.NET Products .NET The . .NET Services .Introducing . This suite consists of the: .) The . This service allows users to access data by linking calendars. address books. which is used in Web applications such as Hotmail. phonebooks.NET offers a complete suite for developing and deploying applications.

This suite consists of the: .NET Framework (Contd.NET Products . It is a consistent and simplified programming model that helps you to easily build robust applications.Introducing . . develop.NET offers a complete suite for developing and deploying applications.NET Framework It is the foundation on which you design.) The .NET Services . and deploy applications.NET The .

CLR understands.NET.NET.NET Framework. VC++ Web Forms. . CLR is the At the presentation environment where all The . and across different . executed. and Applications. VC#.NET layer.Introducing . Console platforms by The . execution of code VB.NET Components of the .NET translating code into Framework class Intermediate library comprises Language (IL). which IL is a low-level are contained within language that the assemblies.NET technologies class library works of user interfaces.NET They The CLR allows the language.NET Framework The following figure shows the different components of the . with anyare . .NET programs using Framework provides three typesare . namespaces. such as Windows Forms.

NET Components of the .NET Framework (Contd.) Some of the advantages offered by the .Introducing .NET Framework are: Consistent programming model Multi-platform applications Multi-language integration Automatic resource management Ease of deployment .

The IDE also provides you with a centralized location for designing the user interface for an application. . writing code.NET IDE provides you with a common interface for developing various kinds of applications.Introducing . and compiling and debugging the application.NET IDE The Visual Studio .NET Using Visual Studio .

Introducing .NET provides one program interface: • Web Services: They are used to communicate with remote components .NET User and Program Interfaces • • .NET provides three types of user interfaces: • Windows Forms: They are used in Windows-based applications • Web Forms: They are used in Web-based applications • Console Applications: They are used to create character-based console applications that can be executed from the command line. .

Do you want to check for another book (y/n): .NET The two ways of interacting with an application are: By using Character User Interface (CUI) By using Graphical User Interface (GUI) In CUI.provides the userainteracts with a system by keying in A GUI picture-oriented or graphical commands. The book is not available. way of interacting with the system.Introducing . the sample output The following figure shows a sample output ofof aa GUI CUIapplication. Enter your name: John Enter a book name: Famous Five Sorry. application.

Users need not remember the lines of syntax.Introducing . Most of the commands can be executed using the mouse. .NET Advantages of GUI applications are: They are easy to learn and use.

Label Controls Button Control TextBox Control ComboBox Control . These components enable you to enter information and customize other parameters.Introducing . and combo box. textbox.NET A typical application screen contains components such as buttons and text boxes. These components are called controls. The following figure shows a GUI application with various controls such as label. button.