Вы находитесь на странице: 1из 62

.

NET


Microsoft
Microsoft TechDays http://www.techdays.ru

Microsoft TechDays http://www.techdays.ru


UI

/
/

Microsoft TechDays http://www.techdays.ru


UI

/
/

Microsoft TechDays http://www.techdays.ru


UI

/
/

Microsoft TechDays http://www.techdays.ru


UI

/
/

Microsoft TechDays http://www.techdays.ru


UI

/
/

Microsoft TechDays http://www.techdays.ru


UI

/
/

Microsoft TechDays http://www.techdays.ru


UI

/
/

Microsoft TechDays http://www.techdays.ru


UI

/
/

Microsoft TechDays http://www.techdays.ru


UI

/
/

Microsoft TechDays http://www.techdays.ru

Microsoft TechDays http://www.techdays.ru


UI

/
/

Microsoft TechDays http://www.techdays.ru

Microsoft TechDays http://www.techdays.ru

Microsoft TechDays http://www.techdays.ru


( )

( Win32)

Microsoft TechDays http://www.techdays.ru

.NET

CLR

BCL

JIT

.NET Framework

(Win32)

Microsoft TechDays http://www.techdays.ru

.NET Framework
, ,



Windows


Microsoft TechDays http://www.techdays.ru

.NET
VB

C#

C+ +

Pyt hon

Jscript
Visual St udio


ASP.NET

WinForm s

WPF

ADO.NET, XML, Ent it y Fram ework, LinQ



( CLR)
Windows

COM+

Microsoft TechDays http://www.techdays.ru

.NET 3.5
.NET Framework
Visual
Studio 2008

.NET Framework 3.0
2.0
Microsoft Visual Studio 2008
.NET Framework 3.5
.NET Framework 3.0 SP1
.NET Framework 2.0 SP1
Microsoft TechDays http://www.techdays.ru

(CLR)




Microsoft TechDays http://www.techdays.ru



/ ()

Microsoft TechDays http://www.techdays.ru




MSDN
technet msdn

Microsoft TechDays http://www.techdays.ru

Microsoft TechDays http://www.techdays.ru

Microsoft TechDays http://www.techdays.ru

Visual Studio

Microsoft TechDays http://www.techdays.ru

Microsoft TechDays http://www.techdays.ru


UI

/
/

Microsoft TechDays http://www.techdays.ru


Windows Forms
(Rich Client, OBA) WPF

Compact Framework (Forms)

ASP.NET

WCF

RIA

Silverlight, ASP.NET Ajax,


XBap
Microsoft TechDays http://www.techdays.ru

ASP.NET


ASP PHP



MVC
AJAX

Microsoft TechDays http://www.techdays.ru


HTML>

<HEAD>
<TITLE>Database Programming with Visual Basic 6.0</TITLE>
</HEAD>

<BODY>
<CENTER> <H1><FONT size=4> Using ADO in a Visual Basic Script Web
Page </FONT></H1> <H2>Database Programming with Visual Basic
6.0</H2> <HR> <! Begin server side script here>
<% dim myconnection dim rsTitleList set myConnection =
Server.CreateObject("ADODB.Connection") myconnection.open
"Provider=Microsoft.Jet.OLEDB.3.51;" _
& "Data
Source=C:\begdb\biblio.mdb" SQLQuery = "SELECT title FROM titles"
set rsTitleList = myConnection.Execute(SQLQuery) do until
rsTitleList.eof
Response.Write rsTitleList("Title")
%> <BR> <%
rsTitleList.movenext loop rsTitleList.close set rsTitleList =
nothing %> <! end server side script> <HR>
</CENTER>
</BODY>
</HTML>

Windows Forms



Microsoft TechDays http://www.techdays.ru

Microsoft TechDays http://www.techdays.ru

WPF


Microsoft TechDays http://www.techdays.ru

WPF WinForms?
WPF

(2D,3D, ,
)


,





RIA Silverlight

Winforms

Windows2000


(installbase)

Microsoft TechDays http://www.techdays.ru

Windows Presentation Foundation

XPS Viewer

Document Services

User Interface Services

XPS Documents

Application
Services

Controls

Packaging
Services

Deployment
Services

Layout

Core Presentation
Imaging

Base Services
2D

Audio

XAML

Video

Accessibility

Text
Effects

3D
Animation

Input &
Eventing

Visual Primitives

Property
System

DWM
Composition
Engine Media Integration Layer
Windows
Media
Foundation

Data
Binding

Direct3D

Propert
y
Engine

Input /
Eventin
g
System

. NET Framework 2 . 0

Windows Vista Display Driver ( LDDM )

Microsoft TechDays http://www.techdays.ru

Microsoft TechDays http://www.techdays.ru

Microsoft TechDays http://www.techdays.ru

Server

Vista

Web

Desktop

Designer

Look, behavior, brand,


and emotional connection

Developer

Media
& RIA

Function, deployment, data,


security, operational integrity

Silverlight
Web RIA

Linux, Windows, Mac


4MB
, , ,
,
AJAX

.NET Framework WPF, LINQ, , ,


...
C#, VB.NET,
Python, Ruby, JavaScript/AJAX

RSS, REST/POX, AJAX/JSON, etc.
-


UI

/
/

Microsoft TechDays http://www.techdays.ru

WCF
Windows Communication Foundation




(
)
(SOA)
(S+S)
Microsoft TechDays http://www.techdays.ru

-
COM, COM+/ES,
MSMQ, WSE, ASAX

http/soap, binary tcp/udp


, ,

(
)
Microsoft TechDays http://www.techdays.ru


UI

/
/

Microsoft TechDays http://www.techdays.ru

Windows Workflow
Foundation
Windows Workflow Foundation (WF)

,

(. workflow)

Microsoft TechDays http://www.techdays.ru

(Sequential Workflow)

(StateMachine Workflow)
,

;

(Rules-driven Workflow)
Microsoft TechDays http://www.techdays.ru


UI

/
/

Microsoft TechDays http://www.techdays.ru

ADO.NET Entity Framework


Entity Framework

LINQ

Microsoft TechDays http://www.techdays.ru

LINQ
Language Integrated Query
C#
( )
Linq for Objects
Linq for XML
Linq for SQL

Microsoft TechDays http://www.techdays.ru

LINQ
public void Linq1() {
int[] numbers = { 5, 4, 1, 3, 9, 8, 6,
7, 2, 0 };

var lowNums =
from n in numbers
where n < 5
select n;

Console.WriteLine("Numbers < 5:");


foreach (var x in lowNums) {
Console.WriteLine(x);
}

SqlQuery query=new SqlQuery("Select * from


Customers where DateOfBitrh>30 and
custId="+custId);
SqlReader rdr=query.ExecuteReader();

LINQ
LINQdb db = new LINQdb("Data Source=(local);Initial
Catalog=LinqDb");

var q = from c in db.Customers where


c.DateOfBitrh.AddYears(35) > DateTime.Now orderby
c.DateOfBirth descending select c;

>>Compiler error DateOfBitrh variable not declared


UI

/
/

Microsoft TechDays http://www.techdays.ru

.NET



(CAS)

Microsoft TechDays http://www.techdays.ru


WindowsPrincipal authenticatedUser = User as
WindowsPrincipal;
if
(authenticatedUser.IsInRole(@"DomainName\Manager") )
{

//
}

[PrincipalPermissionAttribute(SecurityAction.Demand,
Role=@"DOMAINNAME\Managers")]
public sealed class OnlyManagersCanCallMe
{

(System.Configuration)

(System.Diagnostics )

(Performance
Counters)

(ClickOnce)
Microsoft TechDays http://www.techdays.ru


ASP.NET
UI
Windows Forms WPF

System.*
System.*

WCF
WCF

WCF

Windows Workflow

WCF


WCF


Windows

Workflow

FoundationWindows

Workflow

Activities

Entity Framework

Linq
to SQL

/
/

WCF

Microsoft TechDays http://www.techdays.ru

Microsoft TechDays http://www.techdays.ru

.NET
msdn.microsoft.com/en-us/library/w0x726
ASP.NET www.asp.net
WPF windowsclient.net
Silverlight www.silverlight.net
Windows Communication
msdn.microsoft.com/en-us/
netframework/aa663324.aspx
Windows Workflow
msdn.microsoft.com/en-us/
netframework/aa663328.aspx
Microsoft TechDays http://www.techdays.ru

2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market
conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.
MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Microsoft TechDays http://www.techdays.ru