Top Banner
1 ERP Analysts (India) Pvt. Ltd. L e a d w i t h V i s i o n 705, Swapnalok Complex, Secunderabad - 500 003
32

ERP Analysts (India) Pvt. Ltd

Feb 11, 2022

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: ERP Analysts (India) Pvt. Ltd

1

ERP Analysts (India) Pvt. Ltd.L e a d w i t h V i s i o n

705, Swapnalok Complex, Secunderabad - 500 003

Page 2: ERP Analysts (India) Pvt. Ltd

2

Agenda

.NET FrameworkCommon language runtimeBuilding user interfacesData and ADO.NETSummary

Page 3: ERP Analysts (India) Pvt. Ltd

3

The center of .NET architectureTechnical definition:

“a programmable application component accessible via standard Web protocols”

Expose functionality from Web sitesalmost like component programming over the Web

The .NET FrameworkXML Web Services

Page 4: ERP Analysts (India) Pvt. Ltd

4

ClientClient

WebWebserviceservice WebWeb

serviceservice

WebWebserviceservice WebWeb

serviceservice

ClientClientXMLXML

XMLXMLXMLXML

XMLXML

XMLXML

XMLXML

HTMLHTML

The .NET FrameworkXML Web Services

Page 5: ERP Analysts (India) Pvt. Ltd

5

Base class libraryBase class library

Common language specificationCommon language specification

Common language runtimeCommon language runtime

ADO.NET: Data and XMLADO.NET: Data and XML

Visual BasicVisual Basic C++C++ C#C#V

isual Studio.N

ET

Visual S

tudio.NE

T

ASP.NET: Web servicesASP.NET: Web servicesand Web Formsand Web Forms

JScriptJScript ……

WindowsWindowsFormsForms

The .NET FrameworkThe .NET Framework and Visual Studio .NET

Page 6: ERP Analysts (India) Pvt. Ltd

6

The .NET FrameworkCommon Language Runtime

simplified developmentXCOPY deploymentscalabilityrich Web clients and safe Web hostingpotentially multi-platformmultiple languages (cross-inheritance)increases productivity

Page 7: ERP Analysts (India) Pvt. Ltd

7

The .NET Framework.NET Framework Services

ASP.NETlogical evolution of ASP (compiled)

Web Formsmanageable code (not “spaghetti” code)

Windows Forms.NET Framework for building rich clients

ADO.NET, evolution of ADOnew objects (e.g., DataSets)

XML support throughout

Page 8: ERP Analysts (India) Pvt. Ltd

8

Common language runtime

Page 9: ERP Analysts (India) Pvt. Ltd

9

Common Language RuntimeArchitecture

Com

mon

lang

uage

runt

ime

Frameworks

Class loader and layout

IL to

na

tive

code

co

mpi

lers

GC, stack walk, code manager

Sec

urity

Exe

cutio

nsu

ppor

t

Base classes

Page 10: ERP Analysts (India) Pvt. Ltd

10

Common Language RuntimeGoals

Developmentstandard class frameworkautomatic memory managementconsistent error handlingmixed-language applicationsmultiple platformssafer execution

Deploymentremoval on registration dependencysafety: fewer versioning problemsthe end of “DLL Hell”

Page 11: ERP Analysts (India) Pvt. Ltd

11

Common Language RuntimeGoals

Developmentstandard class frameworkautomatic memory managementconsistent error handlingmixed-language applicationsmultiple platformssafer execution

Deploymentremoval of registration dependencysafety: fewer versioning problemsthe end of “DLL Hell”

Page 12: ERP Analysts (India) Pvt. Ltd

12

Common Language RuntimeMultiple Language Support

What about types?Common Type System (CTS)

Other languages and compilersCommon Language Specification (CLS)

Page 13: ERP Analysts (India) Pvt. Ltd

13

Source code

C++, C#, Visual Basic or any .NET language

Csc.exe or Vbc.exeCompiler

Assembly

DLL or EXE

Common Language RuntimeCompilation

Page 14: ERP Analysts (India) Pvt. Ltd

14

Metadata

IL Managed

code

Resources

ParcelTracker.DLL

Common Language RuntimeAssemblies

Page 15: ERP Analysts (India) Pvt. Ltd

15

Common Language RuntimeMetadata

Type informationmore complete than IDL / TLBautomatically bound into assembly

inseparablestored in binary format

describes every class typeused by Microsoft IntelliSense® in Visual Studio .NET

Page 16: ERP Analysts (India) Pvt. Ltd

16

Type DescriptionsClassesBase classesImplemented interfacesData membersMethods

NameVersionCulture

Assembly Manifest

Other assembliesSecurity permissionsExported types

Common Language RuntimeMetadata in an Assembly

Page 17: ERP Analysts (India) Pvt. Ltd

17

Common Language RuntimeApplications

One or more assembliesAssemblies resolution

using metadatalocal (preferred)Global Assembly Cache (GAC)

Different applications may use different versions of an assemblyeasier software updateseasier software removal

Page 18: ERP Analysts (India) Pvt. Ltd

18

Visual BasicSource code

Compiler

C++C#

CompilerCompiler

AssemblyIL code

AssemblyIL code

AssemblyIL code

Operating system services

Common language runtime

JIT compiler

Native code

Managedcode

Unmanagedcomponent

Common Language RuntimeExecution Model

Page 19: ERP Analysts (India) Pvt. Ltd

19

Web Forms and Web Services

Page 20: ERP Analysts (India) Pvt. Ltd

20

Building User InterfacesWindows Forms

Framework for building rich clientsRAD (rapid application development)rich interfaceseasily hooked into Web servicesrich set of controlsdata-awareActiveX® Supportlicensingaccessibilityprinting support

Page 21: ERP Analysts (India) Pvt. Ltd

21

Building User InterfacesWindows Forms

Framework for building rich clientsRAD (rapid application development)rich interfaceseasily hooked into Web servicesrich set of controlsdata-awareActiveX® supportlicensingaccessibilityprinting support

Page 22: ERP Analysts (India) Pvt. Ltd

22

Building User InterfacesASP.NET

Logical evolution of ASPcontrol-based, event-driven execution modelimproved performancesupports multiple languagesnot limited to VARIANT typesmore productivecleanly encapsulated functionality

Page 23: ERP Analysts (India) Pvt. Ltd

23

Building User InterfacesASP.NET Web Forms

Allows clean-cut code (non-spaghetti code)code-behind Web Forms

Easier for tools to generateCode within is compiled then executed Improved handling of state informationBrowser-compliant JavaScript generationSupport for ASP.NET server controls

form validationData-bound gridsmore

Page 24: ERP Analysts (India) Pvt. Ltd

24

Building User InterfacesWeb Services

Technical definition – “A programmable application component accessible via standard Web protocols”

built on SOAP/XMLExpose functionality from Web sites

almost like component programming over the Webfunctionality exposed using XML/HTML

Standard Web services include:storage service for .NETcalendarMSN Passport

Page 25: ERP Analysts (India) Pvt. Ltd

25

ParcelTracker.asmx

<%@ WebService Language="C#" %>using System;using System.Web.Services;using VBParcelTrackerNS;public class ParcelTrackerWebService{[WebMethod]public string GetOrderStatus (int orderNumber){

//Implementation here!}

}

Building User InterfacesCreating a Web Service

Page 26: ERP Analysts (India) Pvt. Ltd

26

ParcelTracker.asmx

<%@ WebService Language="C#" %>using System;using System.Web.Services;using VBParcelTrackerNS;public class ParcelTrackerWebService{[WebMethod]public string GetOrderStatus (int orderNumber){

//Implementation here!}

}

Building User InterfacesCreating a Web Service

Page 27: ERP Analysts (India) Pvt. Ltd

27

Building User InterfacesCreating a Web Service Client

SOAP proxySOAP proxycodecode

Web serviceWeb service

the Internet

Page 28: ERP Analysts (India) Pvt. Ltd

28

Using ADO.NET for Data Access (XML Output)

Page 29: ERP Analysts (India) Pvt. Ltd

29

Data and ADO.NETThe Evolution of ADO to ADO.NET

New objects (e.g., DataSets)Great support for XMLSeparates connected / disconnected issuesLanguage-neutral data accessUses same types as common language runtime

Page 30: ERP Analysts (India) Pvt. Ltd

30

Data and ADO.NETADO.NET Classes

SQL Server

DataSetAdapter

DataReader(Forward-only)

DataSet

XML

Page 31: ERP Analysts (India) Pvt. Ltd

31

Data and ADO.NETXML Support

Rich XML-supporting classesfor reading XML from fileswriting XML from filesnavigationXSL transformationsDataSets

Page 32: ERP Analysts (India) Pvt. Ltd

32

Data and ADO.NETSystem.XML

XmlTextWriter

XmlTextReaderXmlTextReader

<XML><XML>

XmlDocument

DocumentNavigator

XmlReader

XmlValidatingReader XmlNodeReaderXmlNodeReader