Title: Microsoft .NET Framework Overview
1(No Transcript)
2Microsoft .NET Framework
???????????? ?? .NET Framework
http//www.nakov.com/dotnet/
?????? ?????
??????? ?????
?????????? ???????? ?? ?????????? ?? ???????
academy.devbg.org
3??????? ?? Microsoft ?? .NET
- ???????????
- ?? ????? ??????????
- ?????????
- ?? ????? ?????
XML Web ???????????????? ?? ?????? ????????? ?
????????????
Authentication
Scheduling
Notification
Back Office??????????? ?????????????? ?? ???????
Sales
Customer Service
ERP Billing
4.NET Framework
- ????? ?? ???????????? ?? .NET
- ????????? ?? ?????????? ?? .NET ??? ? ???????????
????? - ?????? ????? ?? ?????????? ? ?????????? ??
??????? ?????????? ? Web ?????? - ????????? API ? ?????? framework, ????????? ??
??????? ?? ???????????? - ????? ?????? ?? ???????? ????????? (Windows,
Linux, FreeBSD, )
5??????? ?? .NET Framework FCL CLR
- Common Language Runtime
- ?????????? ?? ??????? (garbage collection)
- ?????????? ?? ???????? ?????
- ???????? ????????? ?????? ?? ???????????? (?.
???. assemblies) ???? ???? ????????? - ??????????? ?????????
- Framework Class Library
- ?????????? ????????? ?????????????? ??
?????????? - ASP.NET, Web Services, ADO.NET, Windows Forms,
IO, XML, ...
6.NET Framework Common Language Runtime
- CLR ????????? ??????? ?? ?????????? ?? ????
- ????????? ???????, ???????????????, ...
- Code-based security
- Role-based security
Common Language Runtime
Operating System
7.NET Framework Base Class Library
- ?????? ???????-??????????? ?????????? ??
?????????????? ?????? - ????????, ????-?????, ?????? ??? ???????? ??????,
.NET Framework (Base Class Library)
Common Language Runtime
Operating System
8.NET Framework Data Access Layer
- ?????? ?? ?????????? ???? ?????
- Disconnected ????? ?? ???????
- ?????? ? XML
ADO .NET and XML
.NET Framework (Base Class Library)
Common Language Runtime
Operating System
9.NET Framework ASP.NET Windows Forms
- ????????????? ????????? ?? ????????????
Web-???????, Windows GUI, Web ??????,
ASP .NET Web Forms Web Services Mobile Internet
Toolkit
Windows Forms
ADO .NET and XML
.NET Framework (Base Class Library)
Common Language Runtime
Operating System
10.NET Framework Programming Languages
- ?????????? ??????? ?? ????!
C
C
VB.NET
Perl
J
Common Language Runtime
Operating System
11.NET Framework Common Language Specification
Common Language Specification
Common Language Runtime
Operating System
12.NET Framework Visual Studio .NET
C
C
VB.NET
Perl
J
Visual Studio .NET
Common Language Specification
Common Language Runtime
Operating System
13????????? ?? ????? ?????
- IL (MSIL or CIL) Intermediate Language
- ???? ?? ????? ???? (??????? ????), ???? ????????,
?? ???????-?????????? - CTS ??????? ?? ??????, ???????? ? CLR
- ???????????? ?????? (int, float, string, )
- ? ?????????? ???????? ??? ???? ??????
- ??? ???? Value types ? Reference types
- CLS ????????? ?? ????????????, ????? ?????? ??
?? ??????? ?? ?????? ????? ? ?????????? - ???? ?? ????????? ???????????? ?? ??????????????
????? ?????????? ?????
14???????? ???????? ?? MSIL
.method private hidebysig static void Main() cil
managed .entrypoint // Code size 11
(0xb) .maxstack 8 ldstr "Hello, world!"
call void mscorlibSystem.ConsoleWriteLine
(string) ret // end of method HelloWorldMain
15.NET ???????
- ?????, ???????????? ?? Microsoft
- C, C, J, VB.NET, JScript
- ????? ?? ????? ??????????
- Perl, Python, Pascal, APL, COBOL, Eiffel,
Haskell, ML, Oberon, Scheme, Smalltalk - ???????? ?? ???????????? ?????
- ???????????? ??????????? ?? ?????? ? ??????????
?? ?????????? - ???? ?????? ???? ?? ??????? ??? ?? ???????? ?????
- ???????????? ? ????????, ? ?? ????????
- ???? ???????????? ?????????? ??? ????? API ??
?????
16?????? C
- ??????? ????? C, Java ? Delphi
- ???????????-??????????o ????????????
- ????????, ??????, ???????
- ????????, XML-???????? ????????????
- ?????? ?????, ??? header ???????, IDL ? ?.?.
- ???? ?? ?? ?????? ? Web-??????????
- ?????? ? ?????!
- ???????????? ?????? ?? ??????, ????. 5.ToString()
? ??????? ????????? - ?????? ??????? ?????? ??????? ?? ??????
- ????? ???????????? ? ?????????? ?? ?????????????
17?????? C ??????
using System class HelloWorld public
static void Main() Console.WriteLine("H
ello!, world!")
18?????????? ? ??????????
??????????
?????? ?? assembly (.EXE ??? .DLL ????)
- ?????? ????? ????? ?? ?????? ?? ????? ???
??????????
- ????????????? ??? ???????????
19VS.NET ?????? ????? ?? ?????????? ??????
??????
- ?? Visual Studio.NET ??????
- ?? ?????? ???
- ?? ???????? ????????????? ?????????
- ?? ??????????? ??????????????
- ?? ??????????? ? ????????
- ?? ?????????
- ?????? ????? ?? ?????? ?????
- ?????? ????? ?? ?????? ?????????
- ?????? ????? ?? ?????? ??????????
20Visual Studio .NET
21.NET Framework Library
ADO.NET ? XML
Base Class Library
22.NET Framework ??????
23???????? ?? Base Class Library
System
Security
Collections
ServiceProcess
Configuration
Text
Diagnostics
Threading
Globalization
IO
Runtime
InteropServices
Net
Remoting
Reflection
Serialization
Resources
24Base Class Library
- ?????? ?????, ????????????, ???????????
- ???????? ArrayList, Hashtable, ...
- ??????????????????? ???????, ?????????
- I/O ??????? ? ???????? ??????, ???????, ...
- ??????? ???????????? TCP/IP, HTTP, ...
- Reflection ????????? ? ????????? ?? MSIL
- ????????? ????????????, ????? ?? ??????
- ????? ?????????, ????????? ??????, ...
- Remoting ? Serialization ?????????? ?????????
- ?????????????? ? ?????????????
25???????? Data ? XML
26ADO.NET ? XML
- ADO.NET ?????? ???????? ?????? ?????
- XML (??????????), ??????????, ...
- ????? ???????? ? ??????? (DataSet)
- DataSet ???? ?? ??????? ???????? ?????? ???????,
???????, ???????, constraints, ... - ???, stateless, disconnected ?????
- ???????? ???????? ?????????? ? XML ??????
- ??????????????? ???????-?????????? ?????? ??
??????? - ????? ????????? ?? XML
- W3C DOM, XPath, XSLT ? XSchema
27VS.NET DataSet ????????
28???????? ?? Windows Forms
System.Windows.Forms
Design
ComponentModel
System.Drawing
Drawing2D
Printing
Imaging
Text
29Windows Forms
- Windows Forms ? framework ?? ????????? ??
?????????? ? ??????????-??????? ????????
????????????? ????????? - RAD (Rapid Application Development)
- ???????????-??????????
- ??????? ?? ???????
- ????? ????? ?? ????????
- Data-aware ??????????
- ????????? ?? ????????
- ???????? ????????? ?? Unicode
- ????????? ??????????? ?? ????????????? ?????????
30VS.NET Windows Forms ????????
31???????????? 1
- ????????? ?? ?????? ?????????? ?? ?????? ?? ????
?? ????? ???? - Windows Forms
- ADO.NET
- MS SQL Server
- Visual Studio .NET
32???????????? 1 ???????????
Database Microsoft SQL Server
SqlConnection
SqlDataAdapter
Update
Fill
33???????? ?? ASP.NET
System.Web
Services
UI
HtmlControls
Description
WebControls
Discovery
Protocols
Caching
Security
Configuration
SessionState
34ASP.NET
- Framework ?? ????????? ?? Web-???????? ??????????
? Web-?????? ?? ????? .NET ???? - C, C, VB.NET, JScript, ...
- ???????? ?? ???????? ???????
- DHTML, HTML 3.2, WML, ??????? ??????????
- ASP.NET Web-???????????? ?? ?????????? ??
assemblies - ??????? ?? ??? ????? ????????? ? ???? ???? ??
?????????? ?? ???? ??????? - ??? ????????? ?? ???? ?? Web-???????
- ????????????? ? ??????????? ????? ?? ???????
??????????
35ASP.NET
- ????? ????? ?? ASP.NET server ????????
- ????????? ?? ???????
- Data-bound grids
- Event-driven ????? ?? ??????????
- ??????? ????????? ?? Web-??????
- ????? ?????????? (deployment)
- ?????? ??????????
- ?????? ???????????????? ? ????????????
- ?????????? ?????????? ?? ???????????? ??
??????????? (session state management)
36VS.NET Web Forms ????????
37???????????? 2
- ????????? ?? ?????? Web-???????? ?????????? ??
?????? ?? ???? ????? ???? - ASP.NET (Web Forms)
- ADO.NET
- MS SQL Server
- MS Internet Information Server
- Visual Studio .NET
38???????????? 2 ???????????
Database Microsoft SQL Server
SqlConnection
SqlDataAdapter
Update
Fill
39Web-??????
- Web-???????? ?? ????????? ??????????, ????????
?????????? ???? Web - ????????? ??????????? HTTP, XML ? SOAP
- ???? ?????????? ???????? ?? ????? WSDL
- ???????? ?? ? ?????? ?? ????? ?????? ?? ?????
????????? - ??????? ?? ?????????? ? ??????-??????? ???????
?? ???????????-????????????? ????????????, ??
?????? ???? Web - ASP.NET ????????? ????? ?? ?????????? ??
Web-?????? - ????? .ASMX ??????? ? ?????????? ??????? ? ??????
? ??? - ASP.NET ?? ????????? ??? ?????????, ???????? ??
WSDL ? ??????? ?? ??????? ????????
40Web Service ?????? ?? C
ParcelTracker.asmx
lt_at_ WebService Language"C" gt using
System using System.Web.Services public class
ParcelTrackerWebService WebMethod
public string GetOrderStatus( int
orderNumber) // Implementation here
// return some_result
41???????????? 3
- ????????? ?? ?????? Web-?????? ????
- ASP.NET (Web Services)
- MS Internet Information Server
- Visual Studio .NET
42.NET Framework ???????
- Web-???????
- ????????? ???? ?? .NET Framework
http//msdn.microsoft.com/netframework/ - Microsoft .NET Framework Community
http//www.gotdotnet.com/ - ASP.NET http//www.asp.net/
- .NET Windows Forms http//www.windowsforms.net/
- OReilly .NET Community Site http//www.ondotnet
.com/ - Microsoft Patterns and Practices
http//msdn.microsoft.com/practices/ - Code Project http//www.codeproject.net/
43.NET Framework ???????
- Web-???????
- Mono Open Source .NET Framework
http//www.go-mono.org/ - Rotor MS Shared Source .NET CLI
http//msdn.microsoft.com/net/sscli/ - ???? ?? .NET Framework ? ???????? ???????????
http//www.nakov.com/dotnet/ - ????????
- ?????????? ?? .NET Framework news//msnews.micro
soft.com/microsoft.public.dotnet.framework - ??????????? ???????? ?? Microsoft
news//msnews.microsoft.com/microsoft.public.bg.d
eveloper
44Microsoft .NET Framework?????? ?????