SlideShare una empresa de Scribd logo
1 de 21
Framework Component & DBMS
Concept
Session 2
Objective
• CTS,CLS & Assemblies
• .NET Architecture.
• Database Concept
• DML Command.
• Store Procedure Example.
CTS(Common Type System):
Two language communicate smoothly due to
CLR,has CTS. It is an integral part of the runtime &
helps to support cross-language communication.
It prevent data loss when a type in one language
transfers data to its equivalent type in other language.
Some functionality are follows:
a)Support object-oriented model
b)Specifies guidelines for different languages.
c)Supports primitive data types,such as
Boolean,Byte,Char, & Int32 etc.
CLS(Common Language Specification):
Common Language Specification (CLS), which is a set of basic
language features needed by many applications. The CLS rules
define a subset of the common type system; that is, all the rules that
apply to the common type system apply to the CLS,
CLS is a contact that states, how a language will interacts with
CLR.When language used CLS they are said to be managed code.
Code that targets the CLR is referred to as managed code.
Earlier CLS was '.NET Compliant Language'
All managed code has the features of the CLR-
1)Object-Oriented
2)Type-safe
3)Cross-language integration
4) Cross-language exception handling
5)Multiple version support
Metadata
• A metadata is the self description of a program in the
binary format. It contains the information of classes,
methods,& other elements used in a program. The
metadata is stored in a CLR Portable Executable(PE)
files.
• The Metadata describes every datatype & member of
your program.
• When code is in the run mode,CLR loads the
metadata into memory & finds information about the
classes & member
Assembly
• An assemblies is a self-describing binary file,which can be
either EXE or DLL file.
• All the .NET assemblies contain the definition of types,
versioning information for the type, meta-data, and manifest.
Assembly manifest:
An assembly manifest is a file that contains the metadata of
assembly, which is the information of version requirements &
security identity. Manifest store in PE file.
The manifest contains:
Strong Name: The assembly's name, version, culture, optional
processor architecture, and public key (for shared assemblies)
File Contents :Name and hash of all files in the assembly
Resource List: Icons, images, text strings and other resources
contained in the assembly
Security: Permissions required for the assembly to run properly.
These different version can be executed at the same time without
interfering with each other.
Operating SystemOperating System
Common Language RuntimeCommon Language Runtime
.NET Framework (Base Class Library).NET Framework (Base Class Library)
ADO .NET and XMLADO .NET and XML
ASP .NETASP .NET
Web Forms Web ServicesWeb Forms Web Services
Mobile Internet ToolkitMobile Internet Toolkit
WindowsWindows
FormsForms
Common Language SpecificationCommon Language Specification
C++C++ C#C# VBVB PerlPerl J#J# ……
VisualStudio.NETVisualStudio.NET
Database
• DATABASE- A shared collection of logically
related data (and a description of this data),
designed to meet the organization needs of
an organization
The Database Management System (DBMS) - software
that enables users to define, create and maintain the
database and provides controlled access to the
database
Advantages
• Sharing of data
• Enforcement of security
• Enforcement of development and maintenance
standards
• Reduction of redundancy
• Avoidance of inconsistency across files
• Maintenance of integrity
• Data independence
Functions of a DBMS
• Data storage, retrieval, update
• A user-accessible catalog
• Transaction support
• Concurrency control
• Recovery services
• Authorization services
• Integrity services
• Data independence
• Utility services
Data Conti..
• Entity: A thing of significance about which
information needs to be known.
• The characteristics that describe or qualify an
entity are called attributes of the entity.
Users
• There are a number of users who can access or
retrieve data on demand using the applications and
interfaces provided by the DBMS.
• Each type of user needs different software capabilities:
• – The database administrator (DBA) is the person or
group in charge of implementing the database system
within the organization.
• – The end users are the people who sit at workstations
and interact directly with the system.
• – The application programmers interact with the
database by accessing the data from programs written
in high-level languages such as Visual Basic or C++.
Example::
Now we have a Table and we take few operation upon
a table.
Table Name:: College_Info
Column Name Data Type Allow Null
Cname nvarchar(50) checked
CLocation nvarchar(50 checked
Courses nvarchar(50 checked
Cname CLocation Courses
Techno India College
EM4/1,Sector-
V,SaltLake,Kolkata-
700091
B.Tech, M.Tech, M.C.A,
B.C.A
Institute Of Engineering
& Management
DN-35,Salt Lake,Sector-
V,Kolkata-700091
B.Tech, M.Tech, M.C.A,
B.C.A, B.B.A, M.B.A
Netaji Subhash
Engineering College
Goria,Pach
Pota,Kolkata-700152
B.Tech, M.Tech, M.C.A,
B.C.A
Siliguri Institute of
Technology
Siliguri,West
Bengal,Darjeeling
B.Tech, M.Tech, M.C.A,
B.C.A, B.B.A, M.B.A
Saroj Mohan Institute
of Technology
GuptiPara,Hoogly
B.Tech, M.Tech, B.B.A,
M.B.A
Haldia Institude of
Technology
Haldia,Hatiberia,Purba
Midnapur,W.B,Pin-
721649
B.Tech, M.Tech, M.C.A,
B.C.A, B.B.A, M.B.A
Insert Statement:
insert into College_Info(Cname,CLocation,Courses)
values(Cname, Clocation,Courses)
Update Statement:
Update College_Info set Clocation=‘xyz’,Courses=‘XYZ1’
where Cname=‘DotNet’
Delete Statement:
Delete from College_Info where Cname=‘DotNet’
Select Statement:
Select * from College_Info where Cname=‘Siliguri Institute of
Technology’
Store Procedure:
Using store procedure we may insert value into Table:
create procedure [dbo].[Store_College]
( @p_Cname nvarchar(50),
@p_CLocation nvarchar(50),
@p_Courses nvarchar(50)
)
as
begin
begin try
begin transaction
** insert into College_Info(Cname,CLocation,Courses)
values(@p_Cname,@p_CLocation,@p_Courses)
commit transaction
end try
begin catch
rollback transaction
insert into error_log(LogDate,Source,ErrMsg)
values(getdate(),'Store_College',error_message())
end catch
end
In Update, Delete Statement we write Update & Delete statement
In ** part.
Summery
 CLS(Common language specification),CTS(Common Type
System).
 Managed code.
 Assemblies.
 Basic Database concept, Insert Update Delete Command.
 Store Procedure application.

Más contenido relacionado

La actualidad más candente

La actualidad más candente (19)

Dotnet Frameworks Version History
Dotnet Frameworks Version HistoryDotnet Frameworks Version History
Dotnet Frameworks Version History
 
Asp net
Asp netAsp net
Asp net
 
.Net introduction
.Net introduction.Net introduction
.Net introduction
 
Microsoft .Net Technology
Microsoft .Net TechnologyMicrosoft .Net Technology
Microsoft .Net Technology
 
Introduction to .Net
Introduction to .NetIntroduction to .Net
Introduction to .Net
 
Dot net syllabus book
Dot net syllabus bookDot net syllabus book
Dot net syllabus book
 
VB.NET:An introduction to Namespaces in .NET framework
VB.NET:An introduction to  Namespaces in .NET frameworkVB.NET:An introduction to  Namespaces in .NET framework
VB.NET:An introduction to Namespaces in .NET framework
 
Be project ppt asp.net
Be project ppt asp.netBe project ppt asp.net
Be project ppt asp.net
 
.Net framework
.Net framework.Net framework
.Net framework
 
Dotnet basics
Dotnet basicsDotnet basics
Dotnet basics
 
.net framework
.net framework.net framework
.net framework
 
Dot net introduction
Dot net introductionDot net introduction
Dot net introduction
 
Aspnet architecture
Aspnet architectureAspnet architecture
Aspnet architecture
 
DotNet Introduction
DotNet IntroductionDotNet Introduction
DotNet Introduction
 
Net framework
 Net framework Net framework
Net framework
 
Microsoft .NET Development Platform Internationalization
Microsoft .NET Development Platform InternationalizationMicrosoft .NET Development Platform Internationalization
Microsoft .NET Development Platform Internationalization
 
.NET Framework
.NET Framework.NET Framework
.NET Framework
 
Jayse farrell resume
Jayse farrell resumeJayse farrell resume
Jayse farrell resume
 
Introducing object oriented programming (oop)
Introducing object oriented programming (oop)Introducing object oriented programming (oop)
Introducing object oriented programming (oop)
 

Similar a ASP.NET Session 2

Common language runtime clr
Common language runtime clrCommon language runtime clr
Common language runtime clrSanSan149
 
Session2 (3)
Session2 (3)Session2 (3)
Session2 (3)DrUjwala1
 
.Net platform an understanding
.Net platform an understanding.Net platform an understanding
.Net platform an understandingBinu Bhasuran
 
.Net framework interview questions
.Net framework interview questions.Net framework interview questions
.Net framework interview questionsMir Majid
 
Chapter 1 introduction to .net
Chapter 1 introduction to .netChapter 1 introduction to .net
Chapter 1 introduction to .netRahul Bhoge
 
.Net framework components by naveen kumar veligeti
.Net framework components by naveen kumar veligeti.Net framework components by naveen kumar veligeti
.Net framework components by naveen kumar veligetiNaveen Kumar Veligeti
 
Dotnet interview qa
Dotnet interview qaDotnet interview qa
Dotnet interview qaabcxyzqaz
 
Microsoft dot net framework
Microsoft dot net frameworkMicrosoft dot net framework
Microsoft dot net frameworkInstantenigma
 
.NET TECHNOLOGIES
.NET TECHNOLOGIES.NET TECHNOLOGIES
.NET TECHNOLOGIESProf Ansari
 
.Net Framework
.Net Framework.Net Framework
.Net FrameworkMohamadKrm
 
Answer ado.net pre-exam2018
Answer ado.net pre-exam2018Answer ado.net pre-exam2018
Answer ado.net pre-exam2018than sare
 
Dotnetintroduce 100324201546-phpapp02
Dotnetintroduce 100324201546-phpapp02Dotnetintroduce 100324201546-phpapp02
Dotnetintroduce 100324201546-phpapp02Wei Sun
 

Similar a ASP.NET Session 2 (20)

Common language runtime clr
Common language runtime clrCommon language runtime clr
Common language runtime clr
 
Session2 (3)
Session2 (3)Session2 (3)
Session2 (3)
 
.Net slid
.Net slid.Net slid
.Net slid
 
Net framework
Net frameworkNet framework
Net framework
 
The Philosophy of .Net
The Philosophy of .NetThe Philosophy of .Net
The Philosophy of .Net
 
Dot net
Dot netDot net
Dot net
 
.Net platform an understanding
.Net platform an understanding.Net platform an understanding
.Net platform an understanding
 
.Net framework interview questions
.Net framework interview questions.Net framework interview questions
.Net framework interview questions
 
Vb
VbVb
Vb
 
.Net Session Overview
.Net Session Overview.Net Session Overview
.Net Session Overview
 
Microsoft.Net
Microsoft.NetMicrosoft.Net
Microsoft.Net
 
Chapter 1 introduction to .net
Chapter 1 introduction to .netChapter 1 introduction to .net
Chapter 1 introduction to .net
 
VB IMPORTANT QUESTION
VB IMPORTANT QUESTIONVB IMPORTANT QUESTION
VB IMPORTANT QUESTION
 
.Net framework components by naveen kumar veligeti
.Net framework components by naveen kumar veligeti.Net framework components by naveen kumar veligeti
.Net framework components by naveen kumar veligeti
 
Dotnet interview qa
Dotnet interview qaDotnet interview qa
Dotnet interview qa
 
Microsoft dot net framework
Microsoft dot net frameworkMicrosoft dot net framework
Microsoft dot net framework
 
.NET TECHNOLOGIES
.NET TECHNOLOGIES.NET TECHNOLOGIES
.NET TECHNOLOGIES
 
.Net Framework
.Net Framework.Net Framework
.Net Framework
 
Answer ado.net pre-exam2018
Answer ado.net pre-exam2018Answer ado.net pre-exam2018
Answer ado.net pre-exam2018
 
Dotnetintroduce 100324201546-phpapp02
Dotnetintroduce 100324201546-phpapp02Dotnetintroduce 100324201546-phpapp02
Dotnetintroduce 100324201546-phpapp02
 

Más de Sisir Ghosh

ASP.NET Session 5
ASP.NET Session 5ASP.NET Session 5
ASP.NET Session 5Sisir Ghosh
 
ASP.NET Session 6
ASP.NET Session 6ASP.NET Session 6
ASP.NET Session 6Sisir Ghosh
 
ASP.NET Session 7
ASP.NET Session 7ASP.NET Session 7
ASP.NET Session 7Sisir Ghosh
 
ASP.NET Session 8
ASP.NET Session 8ASP.NET Session 8
ASP.NET Session 8Sisir Ghosh
 
ASP.NET Session 9
ASP.NET Session 9ASP.NET Session 9
ASP.NET Session 9Sisir Ghosh
 
ASP.NET Session 10
ASP.NET Session 10ASP.NET Session 10
ASP.NET Session 10Sisir Ghosh
 
ASP.NET Session 11 12
ASP.NET Session 11 12ASP.NET Session 11 12
ASP.NET Session 11 12Sisir Ghosh
 
ASP.NET Session 13 14
ASP.NET Session 13 14ASP.NET Session 13 14
ASP.NET Session 13 14Sisir Ghosh
 
ASP.NET Session 16
ASP.NET Session 16ASP.NET Session 16
ASP.NET Session 16Sisir Ghosh
 
ASP.NET System design 2
ASP.NET System design 2ASP.NET System design 2
ASP.NET System design 2Sisir Ghosh
 
ASP.NET Session 1
ASP.NET Session 1ASP.NET Session 1
ASP.NET Session 1Sisir Ghosh
 
Network security
Network securityNetwork security
Network securitySisir Ghosh
 
Module ii physical layer
Module ii physical layerModule ii physical layer
Module ii physical layerSisir Ghosh
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correctionSisir Ghosh
 
Overview of data communication and networking
Overview of data communication and networkingOverview of data communication and networking
Overview of data communication and networkingSisir Ghosh
 
Application layer
Application layerApplication layer
Application layerSisir Ghosh
 

Más de Sisir Ghosh (18)

ASP.NET Session 5
ASP.NET Session 5ASP.NET Session 5
ASP.NET Session 5
 
ASP.NET Session 6
ASP.NET Session 6ASP.NET Session 6
ASP.NET Session 6
 
ASP.NET Session 7
ASP.NET Session 7ASP.NET Session 7
ASP.NET Session 7
 
ASP.NET Session 8
ASP.NET Session 8ASP.NET Session 8
ASP.NET Session 8
 
ASP.NET Session 9
ASP.NET Session 9ASP.NET Session 9
ASP.NET Session 9
 
ASP.NET Session 10
ASP.NET Session 10ASP.NET Session 10
ASP.NET Session 10
 
ASP.NET Session 11 12
ASP.NET Session 11 12ASP.NET Session 11 12
ASP.NET Session 11 12
 
ASP.NET Session 13 14
ASP.NET Session 13 14ASP.NET Session 13 14
ASP.NET Session 13 14
 
ASP.NET Session 16
ASP.NET Session 16ASP.NET Session 16
ASP.NET Session 16
 
ASP.NET System design 2
ASP.NET System design 2ASP.NET System design 2
ASP.NET System design 2
 
ASP.NET Session 1
ASP.NET Session 1ASP.NET Session 1
ASP.NET Session 1
 
Transport layer
Transport layerTransport layer
Transport layer
 
Routing
RoutingRouting
Routing
 
Network security
Network securityNetwork security
Network security
 
Module ii physical layer
Module ii physical layerModule ii physical layer
Module ii physical layer
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
 
Overview of data communication and networking
Overview of data communication and networkingOverview of data communication and networking
Overview of data communication and networking
 
Application layer
Application layerApplication layer
Application layer
 

Último

Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 

Último (20)

Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 

ASP.NET Session 2

  • 1. Framework Component & DBMS Concept Session 2
  • 2. Objective • CTS,CLS & Assemblies • .NET Architecture. • Database Concept • DML Command. • Store Procedure Example.
  • 3. CTS(Common Type System): Two language communicate smoothly due to CLR,has CTS. It is an integral part of the runtime & helps to support cross-language communication. It prevent data loss when a type in one language transfers data to its equivalent type in other language. Some functionality are follows: a)Support object-oriented model b)Specifies guidelines for different languages. c)Supports primitive data types,such as Boolean,Byte,Char, & Int32 etc.
  • 4. CLS(Common Language Specification): Common Language Specification (CLS), which is a set of basic language features needed by many applications. The CLS rules define a subset of the common type system; that is, all the rules that apply to the common type system apply to the CLS, CLS is a contact that states, how a language will interacts with CLR.When language used CLS they are said to be managed code. Code that targets the CLR is referred to as managed code. Earlier CLS was '.NET Compliant Language' All managed code has the features of the CLR- 1)Object-Oriented 2)Type-safe 3)Cross-language integration 4) Cross-language exception handling 5)Multiple version support
  • 5. Metadata • A metadata is the self description of a program in the binary format. It contains the information of classes, methods,& other elements used in a program. The metadata is stored in a CLR Portable Executable(PE) files. • The Metadata describes every datatype & member of your program. • When code is in the run mode,CLR loads the metadata into memory & finds information about the classes & member
  • 6. Assembly • An assemblies is a self-describing binary file,which can be either EXE or DLL file. • All the .NET assemblies contain the definition of types, versioning information for the type, meta-data, and manifest. Assembly manifest: An assembly manifest is a file that contains the metadata of assembly, which is the information of version requirements & security identity. Manifest store in PE file. The manifest contains:
  • 7. Strong Name: The assembly's name, version, culture, optional processor architecture, and public key (for shared assemblies) File Contents :Name and hash of all files in the assembly Resource List: Icons, images, text strings and other resources contained in the assembly Security: Permissions required for the assembly to run properly. These different version can be executed at the same time without interfering with each other.
  • 8. Operating SystemOperating System Common Language RuntimeCommon Language Runtime .NET Framework (Base Class Library).NET Framework (Base Class Library) ADO .NET and XMLADO .NET and XML ASP .NETASP .NET Web Forms Web ServicesWeb Forms Web Services Mobile Internet ToolkitMobile Internet Toolkit WindowsWindows FormsForms Common Language SpecificationCommon Language Specification C++C++ C#C# VBVB PerlPerl J#J# …… VisualStudio.NETVisualStudio.NET
  • 9. Database • DATABASE- A shared collection of logically related data (and a description of this data), designed to meet the organization needs of an organization The Database Management System (DBMS) - software that enables users to define, create and maintain the database and provides controlled access to the database
  • 10. Advantages • Sharing of data • Enforcement of security • Enforcement of development and maintenance standards • Reduction of redundancy • Avoidance of inconsistency across files • Maintenance of integrity • Data independence
  • 11. Functions of a DBMS • Data storage, retrieval, update • A user-accessible catalog • Transaction support • Concurrency control • Recovery services • Authorization services • Integrity services • Data independence • Utility services
  • 12. Data Conti.. • Entity: A thing of significance about which information needs to be known. • The characteristics that describe or qualify an entity are called attributes of the entity.
  • 13. Users • There are a number of users who can access or retrieve data on demand using the applications and interfaces provided by the DBMS. • Each type of user needs different software capabilities: • – The database administrator (DBA) is the person or group in charge of implementing the database system within the organization. • – The end users are the people who sit at workstations and interact directly with the system.
  • 14. • – The application programmers interact with the database by accessing the data from programs written in high-level languages such as Visual Basic or C++. Example:: Now we have a Table and we take few operation upon a table. Table Name:: College_Info Column Name Data Type Allow Null Cname nvarchar(50) checked CLocation nvarchar(50 checked Courses nvarchar(50 checked
  • 15. Cname CLocation Courses Techno India College EM4/1,Sector- V,SaltLake,Kolkata- 700091 B.Tech, M.Tech, M.C.A, B.C.A Institute Of Engineering & Management DN-35,Salt Lake,Sector- V,Kolkata-700091 B.Tech, M.Tech, M.C.A, B.C.A, B.B.A, M.B.A Netaji Subhash Engineering College Goria,Pach Pota,Kolkata-700152 B.Tech, M.Tech, M.C.A, B.C.A Siliguri Institute of Technology Siliguri,West Bengal,Darjeeling B.Tech, M.Tech, M.C.A, B.C.A, B.B.A, M.B.A Saroj Mohan Institute of Technology GuptiPara,Hoogly B.Tech, M.Tech, B.B.A, M.B.A Haldia Institude of Technology Haldia,Hatiberia,Purba Midnapur,W.B,Pin- 721649 B.Tech, M.Tech, M.C.A, B.C.A, B.B.A, M.B.A
  • 16. Insert Statement: insert into College_Info(Cname,CLocation,Courses) values(Cname, Clocation,Courses) Update Statement: Update College_Info set Clocation=‘xyz’,Courses=‘XYZ1’ where Cname=‘DotNet’ Delete Statement: Delete from College_Info where Cname=‘DotNet’ Select Statement: Select * from College_Info where Cname=‘Siliguri Institute of Technology’
  • 17.
  • 18.
  • 19. Store Procedure: Using store procedure we may insert value into Table: create procedure [dbo].[Store_College] ( @p_Cname nvarchar(50), @p_CLocation nvarchar(50), @p_Courses nvarchar(50) ) as begin begin try begin transaction ** insert into College_Info(Cname,CLocation,Courses) values(@p_Cname,@p_CLocation,@p_Courses)
  • 20. commit transaction end try begin catch rollback transaction insert into error_log(LogDate,Source,ErrMsg) values(getdate(),'Store_College',error_message()) end catch end In Update, Delete Statement we write Update & Delete statement In ** part.
  • 21. Summery  CLS(Common language specification),CTS(Common Type System).  Managed code.  Assemblies.  Basic Database concept, Insert Update Delete Command.  Store Procedure application.

Notas del editor

  1. te