Microsoft dot net framework

31
.NET Framework Microsoft's Platform for Application Development

Transcript of Microsoft dot net framework

Page 1: Microsoft dot net framework

.NET FrameworkMicrosoft's Platform for Application Development

Page 2: Microsoft dot net framework
Page 3: Microsoft dot net framework

So what is .NET?

The .Net

Microsoft's platform for software development

Unified technology for development of almost any kind of applications.

Page 4: Microsoft dot net framework

What is .Net Framework? .Net Framework

Programming model for .NET

Developing and executing .NET applications

Unified programming model, set of

languages, class libraries, infrastructure,

components and tools for application

development

Environment for controlled execution of

managed code

Page 5: Microsoft dot net framework

Components of .Net Framework Common Language Runtime (CLR)

• Garbage collection

• Language integration

• Multiple versioning support

• Integrated security

Framework Class Library (FCL)

• Provides the core functionality:

ASP.NET, Web Services, ADO.NET,

Windows Forms, IO, XML, etc.

User and Program Interface

Page 6: Microsoft dot net framework

Common Language Runtime• CLR manages code execution at

runtime• Memory management, thread

management, etc.

.Net Framework

Operating System

Common Language Runtime

Page 7: Microsoft dot net framework

Base Class Library• Object-oriented collection of

reusable types• Collections, I/O, Strings, …

.Net Framework

Operating System

Common Language Runtime

.NET Framework (Base Class Library)

Page 8: Microsoft dot net framework

Data Access Layer• Access relational databases• Disconnected data model• Work with XML

.Net Framework

Operating System

Common Language Runtime

.NET Framework (Base Class Library)

ADO .NET and XML

Page 9: Microsoft dot net framework

ASP.NET & Windows Forms• Create application’s front-end –

Web-based user interface, Windows GUI, Web services, …

.Net Framework

Operating System

Common Language Runtime

.NET Framework (Base Class Library)

ADO .NET and XML

ASP .NETWeb Forms Web Services

Mobile Internet Toolkit

WindowsForms

Page 10: Microsoft dot net framework

Programming Languages• Use you favorite language

.Net Framework

Operating System

Common Language Runtime

.NET Framework (Base Class Library)

ADO .NET and XML

ASP .NETWeb Forms Web Services

Mobile Internet Toolkit

WindowsForms

C++ C# VB.NET Perl J# …

Page 11: Microsoft dot net framework

Common Language Specification

.Net Framework

Operating System

Common Language Runtime

.NET Framework (Base Class Library)

ADO .NET and XML

ASP .NETWeb Forms Web Services

Mobile Internet Toolkit

WindowsForms

Common Language SpecificationC++ C# VB Perl J# …

Page 12: Microsoft dot net framework

Visual Studio .NET

.Net Framework

Operating System

Common Language Runtime

.NET Framework (Base Class Library)

ADO .NET and XML

ASP .NETWeb Forms Web Services

Mobile Internet Toolkit

WindowsForms

Common Language Specification

C++ C# VB Perl J# …

Vis

ua

l Stu

dio

.NE

T

Page 13: Microsoft dot net framework

Common Language Runtime(CLR)

The Heart of .NET Framework

Page 14: Microsoft dot net framework

Common Language Runtime(CLR)

Essential components Service provider -

Code compilation• Known as Just In Time (JIT)

compilation Memory allocation Garbage collection

Something like virtual machine Like the Java Virtual Machine (JVM)

allows the execution of code across different platforms.

Page 15: Microsoft dot net framework

Responsibilities of CLR Execution of the IL code and the JIT

compilation Code Verification Ensuring type safety Interaction with the OS Managing security

• Code access security Garbage Collection

Page 16: Microsoft dot net framework

The .NET LanguagesC#, VB.NET, C++, J#,

etc.

Page 17: Microsoft dot net framework

.NET Languages

.NET languages by Microsoft

• C#, VB.NET, Managed C++, J#, F#,

JScript

.NET languages by third parties

• Object Pascal, Perl, Python, COBOL,

Haskell, Oberon, Scheme, Smalltalk…

Different languages can be mixed in a

single application

Page 18: Microsoft dot net framework

C# Language – Example

Mixture between C++, Java and Delphi

C# is standardized by ECMA and ISO

Example of C# program:

using System;

class NumbersFrom1to100{ static void Main() { for (int i=1; i<=100; i++) { Console.WriteLine(i); } }}

Page 19: Microsoft dot net framework

.NET framework Security The .NET Framework provides several mechanisms for

protecting resources and code from unauthorized

code and users. The security architecture of the .NET Framework is

composed of a number of core elements, including:

• Evidence-based security

• Code access security

• The verification process

• Role-based security

• Cryptography

• Application Domains

Page 20: Microsoft dot net framework

Visual Studio IDEPowerful Development Environment

for .NET

Page 21: Microsoft dot net framework

Visual Studio

Visual Studio is powerful Integrated

Development Environment (IDE) for .NET

Developers

• Create, edit, compile and run .NET

applications

• Different languages – C#, C++, VB.NET,

J#, …

• Flexible code editor

• Powerful debugger

• Integrated with SQL Server

• Strong support of Web services.

Page 22: Microsoft dot net framework

Visual Studio

Helpful wizards and editors

• Windows Forms Designer

• WCF (Windows Communication

Foundation)

• ASP.NET Web Forms Designer

• ADO.NET / LINQ-to-SQL / XML Data

Designer

Page 23: Microsoft dot net framework

ADO.NET

ADO.NET is a data access programming

model for accessing the data stored in a

database from a .NET application.

The ADO.NET object model consists of

two main components-

• data provider

• dataset

Page 24: Microsoft dot net framework

ADO.NET

The Main features of ADO.NET are:

• Disconnected data architecture

• Data cached in datasets

• Scalability

• Data transfer in XML format

Page 25: Microsoft dot net framework

ASP.NET

Platform for building Web applications and

Web services in any .NET language

o C#, C++, VB.NET, JScript, etc.

Automatic multiple clients support

o DHTML, HTML, small devices . . .

Multi Device and Multi Browser

Separation of code and content

o Developers and designers can work independently

Page 26: Microsoft dot net framework

Web Froms:

Pages that users request through their

browser.

Combination of HTML, server controls,

and server code.

Powerful data binding, with great tool

support.

Easy to start, develop, and deploy

ASP.NET Web Forms

Page 27: Microsoft dot net framework

Windows Presentation Foundation(WPF)WPF is actually a new framework introduced

with .NET framework 3.0 which actually puts

forward a new set of classes and assemblies

which allow us to write programs more

efficiently and flexibly.

WPF controls makes smooth drawing in the

form.

Helps in customizing controls and modifying

their behaviors.

Page 28: Microsoft dot net framework

Windows Communication Foundation(WCF)

WCF is a unified communication

framework for distributed applications.

WCF defines a common programming

model and unified API for clients and

services to send messages between

each other.

WCF is the current and future standard

for distributed .Net applications.

Page 29: Microsoft dot net framework

Advantages of .NET Framework

• Consistent programming model.

• Multi-platform application.

• Multi-language integration

• Automatic resource management

• Ease of deployment

Page 30: Microsoft dot net framework

For More Details visit following web sites:

.NET Framework Home Site –

http://msdn.microsoft.com/netframework/

The Microsoft .NET Framework Community http

://www.gotdotnet.com/

ASP.NET – http://www.asp.net/

.NET Windows Forms – http://www.windowsforms.net

/

Read the news groups:

news://msnews.microsoft.com/

microsoft.public.dotnet.framework

Page 31: Microsoft dot net framework