SlideShare uma empresa Scribd logo
1 de 19
Microsoft LinqInsightspart 1 A  tech overview  Alexandre Marreiros, 2011
Agenda Alexandre Marreiros, 2011 Using LINQ References Contacts Pre-Requirements Introduction LINQ Principles Query
Introduction Alexandre Marreiros, 2011 Linq acronym for: Language Integrated Query It extends .NET to access Data in a easy and integrated way to CLI Languages.  Almost anything can be a DataSource to Linq. Data Sources Linq .Net Framework  WPF WCF  WWF  WPF .Net Framework
Introduction LINQ extends CLI languages with the power to querying data, directly.  Avaiable to VB.net and C#. .NET Standard to query multiple data sources. Declarative style of programming. Support for multithread programming. Alexandre Marreiros, 2011
Introduction Alexandre Marreiros, 2011
Demo Alexandre Marreiros, 2011 Presenting Query expression, LINQ to Object and LINQ to SQL
LINQ Principles  Alexandre Marreiros, 2011 LINQ key Ideas are: Integrated; Declarative; Unitive; Extendable; Hierarchical; Composable;
LINQ Principles  Alexandre Marreiros, 2011 Integrated One of the main goals of LINQ is to integrate a flexible query sintax in to .NET languages.  Querying data in .net can be confused and tricky theres an example: SqlConnection connection = new SqlConnection(connectionString); connection.Open(); System.Data.SqlClient.SqlCommand sqlCommand = new SqlCommand(); sqlCommand.Connection = connection; sqlCommand.CommandText = "Select * from Customer"; sqlCommand.ExecuteReader(CommandBehavior.CloseConnection);
LINQ Principles  Alexandre Marreiros, 2011 Integrated LINQ offers a mutch more integrated mode and code cust effective. Querying in LINQ: Contacts DB  = new Contacts(@c:ontacts.mdf); var query = from contact in DB.Contacts; 	select c;
LINQ Principles  Alexandre Marreiros, 2011 Unitive Without LINQ a data driven programs will have in the same code a mix off different technologies Just LINQ Just # SQL C# And, OR XML Parsing C#
LINQ Principles  Alexandre Marreiros, 2011 Extendable LINQ is a technologie based in providers. You Can extend LINQ Implementing new Providers.  All providers are adressed with the same syntax.
LINQ Principles  Alexandre Marreiros, 2011 Declarative varqueryNames = from realNamein names  		 where realName != ""  		 select realName; Focus in What You Want Not In How you do
LINQ Principles  Alexandre Marreiros, 2011 Hierarchical
LINQ Principles  Alexandre Marreiros, 2011 Composable Query can be composed from other queties
Demo Alexandre Marreiros, 2011 A FewqueryExamplesmadefromtheroots
Using Linq Use Linq to easy query datasources as databases, object collections, XML, Excel Files and others. Extend Linq to support aditional datasources. In database or business service Layers use Linq to reduce Complexity. Don´t throw away ADO.NET in data relational database think if he can be a best Aproach. Alexandre Marreiros, 2011
Commingnext NowthatwealreadyunderstandWhat´s LINQ inthenextpartwewillseehow to use thedifferent LINQ model’s. (LINQ to SQL, LINQ to XML, LINQ to Object,How to extend LINQ, LINQ to Sharepoint) Alexandre Marreiros, 2011
Alexandre Marreiros, 2011 References  http://msdn.microsoft.com/en-us/netframework/aa904594Http://download.microsoft.com/download/4/7/0/4703eba2-78c4-4b09-8912-69f6c38d3a56/LINQ.wmvLinq in Action – Fabrice MargueirePro Linq Language integrated query 2010 in c# 2010 – Joseph C. RattzProgramming Microsoft ASP.NET 3.5 – Dino Esposito
Contacts Alexandre Marreiros, 2011 Email: Amarreiros@gmail.com Twitter: @alexmarreiros Feel free to ask

Mais conteúdo relacionado

Mais procurados

Mais procurados (9)

PyOSLC SDK - OSLCFEST
PyOSLC SDK - OSLCFESTPyOSLC SDK - OSLCFEST
PyOSLC SDK - OSLCFEST
 
How to build high frequency trading with our matlab secrets with c++ and mysql
How to build high frequency trading with our matlab secrets with c++ and mysqlHow to build high frequency trading with our matlab secrets with c++ and mysql
How to build high frequency trading with our matlab secrets with c++ and mysql
 
Building N Tier Applications With Entity Framework Services 2010
Building N Tier Applications With Entity Framework Services 2010Building N Tier Applications With Entity Framework Services 2010
Building N Tier Applications With Entity Framework Services 2010
 
apidays LIVE Hong Kong 2021 - Multi-Protocol APIs at Scale in Adidas by Jesus...
apidays LIVE Hong Kong 2021 - Multi-Protocol APIs at Scale in Adidas by Jesus...apidays LIVE Hong Kong 2021 - Multi-Protocol APIs at Scale in Adidas by Jesus...
apidays LIVE Hong Kong 2021 - Multi-Protocol APIs at Scale in Adidas by Jesus...
 
Dreamforce16: Rapidly Develop and Deploy Lightning Components with Intellij
Dreamforce16: Rapidly Develop and Deploy Lightning Components with IntellijDreamforce16: Rapidly Develop and Deploy Lightning Components with Intellij
Dreamforce16: Rapidly Develop and Deploy Lightning Components with Intellij
 
MATLAB Research Projects Guidance
MATLAB Research Projects GuidanceMATLAB Research Projects Guidance
MATLAB Research Projects Guidance
 
Building rich domain models with ddd and tdd ivan paulovich - betsson
Building rich domain models with ddd and tdd   ivan paulovich - betssonBuilding rich domain models with ddd and tdd   ivan paulovich - betsson
Building rich domain models with ddd and tdd ivan paulovich - betsson
 
apidays LIVE Paris - GraphQL meshes by Jens Neuse
apidays LIVE Paris - GraphQL meshes by Jens Neuseapidays LIVE Paris - GraphQL meshes by Jens Neuse
apidays LIVE Paris - GraphQL meshes by Jens Neuse
 
Using the Java Client Library by Noah Crowley, DevRel | InfluxData
Using the Java Client Library by Noah Crowley, DevRel | InfluxDataUsing the Java Client Library by Noah Crowley, DevRel | InfluxData
Using the Java Client Library by Noah Crowley, DevRel | InfluxData
 

Destaque (8)

De cómo la tecnología no logra integrarse en la escuela a menos que grso 2004
De cómo la tecnología no logra integrarse en la escuela a menos que grso 2004De cómo la tecnología no logra integrarse en la escuela a menos que grso 2004
De cómo la tecnología no logra integrarse en la escuela a menos que grso 2004
 
Wordcamp2012 build your plugin
Wordcamp2012 build your pluginWordcamp2012 build your plugin
Wordcamp2012 build your plugin
 
Digital governance in municipalities worldwide • 2005 mark h olsen y seang ...
Digital governance in municipalities worldwide • 2005  mark h olsen y  seang ...Digital governance in municipalities worldwide • 2005  mark h olsen y  seang ...
Digital governance in municipalities worldwide • 2005 mark h olsen y seang ...
 
Windows8.1overviewnetponto
Windows8.1overviewnetpontoWindows8.1overviewnetponto
Windows8.1overviewnetponto
 
Fatma cakir2
Fatma cakir2Fatma cakir2
Fatma cakir2
 
La encuesta
La encuestaLa encuesta
La encuesta
 
8539300 english
8539300 english8539300 english
8539300 english
 
32 Ways a Digital Marketing Consultant Can Help Grow Your Business
32 Ways a Digital Marketing Consultant Can Help Grow Your Business32 Ways a Digital Marketing Consultant Can Help Grow Your Business
32 Ways a Digital Marketing Consultant Can Help Grow Your Business
 

Semelhante a Linq view part1

Semelhante a Linq view part1 (20)

LINQ PPT.pptx
LINQ PPT.pptxLINQ PPT.pptx
LINQ PPT.pptx
 
Linq in C#
Linq in C#Linq in C#
Linq in C#
 
Linq
LinqLinq
Linq
 
Asp.net c# mvc Training-Day-5 of Day-9
Asp.net c# mvc Training-Day-5 of Day-9Asp.net c# mvc Training-Day-5 of Day-9
Asp.net c# mvc Training-Day-5 of Day-9
 
Which PHP framework Should You Use – Laravel vs. CodeIgniter?
Which PHP framework Should You Use – Laravel vs. CodeIgniter?Which PHP framework Should You Use – Laravel vs. CodeIgniter?
Which PHP framework Should You Use – Laravel vs. CodeIgniter?
 
Laravel - A Trending PHP Framework
Laravel - A Trending PHP FrameworkLaravel - A Trending PHP Framework
Laravel - A Trending PHP Framework
 
The LINQ Between XML and Database
The LINQ Between XML and DatabaseThe LINQ Between XML and Database
The LINQ Between XML and Database
 
Web presentation
Web presentationWeb presentation
Web presentation
 
Deciding Between NestJS and Laravel: Syntax, Authentication, and Real-time Ca...
Deciding Between NestJS and Laravel: Syntax, Authentication, and Real-time Ca...Deciding Between NestJS and Laravel: Syntax, Authentication, and Real-time Ca...
Deciding Between NestJS and Laravel: Syntax, Authentication, and Real-time Ca...
 
C# advanced topics and future - C#5
C# advanced topics and future - C#5C# advanced topics and future - C#5
C# advanced topics and future - C#5
 
Frequently Asked Questions About Laravel
Frequently Asked Questions About LaravelFrequently Asked Questions About Laravel
Frequently Asked Questions About Laravel
 
Laravel Web Development: A Comprehensive Guide
Laravel Web Development: A Comprehensive GuideLaravel Web Development: A Comprehensive Guide
Laravel Web Development: A Comprehensive Guide
 
Linq presentation by vaidhesh
Linq presentation by vaidheshLinq presentation by vaidhesh
Linq presentation by vaidhesh
 
Laravel vs Codeigniter, Which is Better PHP Framework_.pptx
Laravel vs Codeigniter, Which is Better PHP Framework_.pptxLaravel vs Codeigniter, Which is Better PHP Framework_.pptx
Laravel vs Codeigniter, Which is Better PHP Framework_.pptx
 
Laravel vs CodeIgniter_ Which One Is Better_.pdf
Laravel vs CodeIgniter_ Which One Is Better_.pdfLaravel vs CodeIgniter_ Which One Is Better_.pdf
Laravel vs CodeIgniter_ Which One Is Better_.pdf
 
Laravel : A Fastest Growing Kid
Laravel : A Fastest Growing KidLaravel : A Fastest Growing Kid
Laravel : A Fastest Growing Kid
 
laravel.pptx
laravel.pptxlaravel.pptx
laravel.pptx
 
Laravel for Enterprise Application Development.pdf
Laravel for Enterprise Application Development.pdfLaravel for Enterprise Application Development.pdf
Laravel for Enterprise Application Development.pdf
 
NodeJS vs Laravel.pptx
NodeJS vs Laravel.pptxNodeJS vs Laravel.pptx
NodeJS vs Laravel.pptx
 
Entity Framework Overview
Entity Framework OverviewEntity Framework Overview
Entity Framework Overview
 

Mais de Alexandre Marreiros

Mais de Alexandre Marreiros (20)

Agular fromthetrenches2netponto
Agular fromthetrenches2netpontoAgular fromthetrenches2netponto
Agular fromthetrenches2netponto
 
Whats a Chat bot
Whats a Chat botWhats a Chat bot
Whats a Chat bot
 
Type of angular 2
Type of angular 2Type of angular 2
Type of angular 2
 
Xamarin devdays 2017 - PT - connected apps
Xamarin devdays 2017 - PT - connected appsXamarin devdays 2017 - PT - connected apps
Xamarin devdays 2017 - PT - connected apps
 
ASP.NEt MVC and Angular What a couple
ASP.NEt MVC and Angular What a coupleASP.NEt MVC and Angular What a couple
ASP.NEt MVC and Angular What a couple
 
Angular 2
Angular 2Angular 2
Angular 2
 
Jws masterclass progressive web apps
Jws masterclass progressive web appsJws masterclass progressive web apps
Jws masterclass progressive web apps
 
Xamarin.forms
Xamarin.forms Xamarin.forms
Xamarin.forms
 
Quick View of Angular JS for High School
Quick View of Angular JS for High SchoolQuick View of Angular JS for High School
Quick View of Angular JS for High School
 
Pt xug xamarin pratices on big ui consumer apps
Pt xug  xamarin pratices on big ui consumer appsPt xug  xamarin pratices on big ui consumer apps
Pt xug xamarin pratices on big ui consumer apps
 
Get satrted angular js day 2
Get satrted angular js day 2Get satrted angular js day 2
Get satrted angular js day 2
 
Get satrted angular js
Get satrted angular jsGet satrted angular js
Get satrted angular js
 
Gab2015 azure search as a service
Gab2015 azure search as a serviceGab2015 azure search as a service
Gab2015 azure search as a service
 
Pragmatic responsive web design industry session 7
Pragmatic responsive web design   industry session 7Pragmatic responsive web design   industry session 7
Pragmatic responsive web design industry session 7
 
Boot strapandresponsiveintro
Boot strapandresponsiveintroBoot strapandresponsiveintro
Boot strapandresponsiveintro
 
WebSite development using WinJS
WebSite development using WinJSWebSite development using WinJS
WebSite development using WinJS
 
Universal Apps Development using HTML 5 and WINJS
Universal Apps Development using HTML 5 and WINJSUniversal Apps Development using HTML 5 and WINJS
Universal Apps Development using HTML 5 and WINJS
 
GWAB Mobile Services
GWAB Mobile ServicesGWAB Mobile Services
GWAB Mobile Services
 
Html5ignition newweborder
Html5ignition newweborderHtml5ignition newweborder
Html5ignition newweborder
 
Windows8.1 html5 dev paradigm discussion netponto
Windows8.1 html5 dev paradigm discussion netpontoWindows8.1 html5 dev paradigm discussion netponto
Windows8.1 html5 dev paradigm discussion netponto
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 

Linq view part1

  • 1. Microsoft LinqInsightspart 1 A tech overview Alexandre Marreiros, 2011
  • 2. Agenda Alexandre Marreiros, 2011 Using LINQ References Contacts Pre-Requirements Introduction LINQ Principles Query
  • 3. Introduction Alexandre Marreiros, 2011 Linq acronym for: Language Integrated Query It extends .NET to access Data in a easy and integrated way to CLI Languages. Almost anything can be a DataSource to Linq. Data Sources Linq .Net Framework WPF WCF WWF WPF .Net Framework
  • 4. Introduction LINQ extends CLI languages with the power to querying data, directly. Avaiable to VB.net and C#. .NET Standard to query multiple data sources. Declarative style of programming. Support for multithread programming. Alexandre Marreiros, 2011
  • 6. Demo Alexandre Marreiros, 2011 Presenting Query expression, LINQ to Object and LINQ to SQL
  • 7. LINQ Principles Alexandre Marreiros, 2011 LINQ key Ideas are: Integrated; Declarative; Unitive; Extendable; Hierarchical; Composable;
  • 8. LINQ Principles Alexandre Marreiros, 2011 Integrated One of the main goals of LINQ is to integrate a flexible query sintax in to .NET languages. Querying data in .net can be confused and tricky theres an example: SqlConnection connection = new SqlConnection(connectionString); connection.Open(); System.Data.SqlClient.SqlCommand sqlCommand = new SqlCommand(); sqlCommand.Connection = connection; sqlCommand.CommandText = "Select * from Customer"; sqlCommand.ExecuteReader(CommandBehavior.CloseConnection);
  • 9. LINQ Principles Alexandre Marreiros, 2011 Integrated LINQ offers a mutch more integrated mode and code cust effective. Querying in LINQ: Contacts DB = new Contacts(@c:ontacts.mdf); var query = from contact in DB.Contacts; select c;
  • 10. LINQ Principles Alexandre Marreiros, 2011 Unitive Without LINQ a data driven programs will have in the same code a mix off different technologies Just LINQ Just # SQL C# And, OR XML Parsing C#
  • 11. LINQ Principles Alexandre Marreiros, 2011 Extendable LINQ is a technologie based in providers. You Can extend LINQ Implementing new Providers. All providers are adressed with the same syntax.
  • 12. LINQ Principles Alexandre Marreiros, 2011 Declarative varqueryNames = from realNamein names where realName != "" select realName; Focus in What You Want Not In How you do
  • 13. LINQ Principles Alexandre Marreiros, 2011 Hierarchical
  • 14. LINQ Principles Alexandre Marreiros, 2011 Composable Query can be composed from other queties
  • 15. Demo Alexandre Marreiros, 2011 A FewqueryExamplesmadefromtheroots
  • 16. Using Linq Use Linq to easy query datasources as databases, object collections, XML, Excel Files and others. Extend Linq to support aditional datasources. In database or business service Layers use Linq to reduce Complexity. Don´t throw away ADO.NET in data relational database think if he can be a best Aproach. Alexandre Marreiros, 2011
  • 17. Commingnext NowthatwealreadyunderstandWhat´s LINQ inthenextpartwewillseehow to use thedifferent LINQ model’s. (LINQ to SQL, LINQ to XML, LINQ to Object,How to extend LINQ, LINQ to Sharepoint) Alexandre Marreiros, 2011
  • 18. Alexandre Marreiros, 2011 References http://msdn.microsoft.com/en-us/netframework/aa904594Http://download.microsoft.com/download/4/7/0/4703eba2-78c4-4b09-8912-69f6c38d3a56/LINQ.wmvLinq in Action – Fabrice MargueirePro Linq Language integrated query 2010 in c# 2010 – Joseph C. RattzProgramming Microsoft ASP.NET 3.5 – Dino Esposito
  • 19. Contacts Alexandre Marreiros, 2011 Email: Amarreiros@gmail.com Twitter: @alexmarreiros Feel free to ask