Soumettre la recherche
Mettre en ligne
もう一つのLINQ ~ Queryable入門
•
Télécharger en tant que PPTX, PDF
•
2 j'aime
•
5,197 vues
Y
yone64
Suivre
もう一つのLINQ ~ Queryable入門
Lire moins
Lire la suite
Technologie
Signaler
Partager
Signaler
Partager
1 sur 12
Télécharger maintenant
Recommandé
LINQ 概要 + 結構便利な LINQ to XML
LINQ 概要 + 結構便利な LINQ to XML
ShinichiAoyagi
An Internal of LINQ to Objects
An Internal of LINQ to Objects
Yoshifumi Kawai
Unityで Photonを使ってリアルタイム・マルチプレイヤーゲームを作っちゃおう【応用編】
Unityで Photonを使ってリアルタイム・マルチプレイヤーゲームを作っちゃおう【応用編】
GMO GlobalSign Holdings K.K.
Friendlyを使ったwindowsアプリテスト自動化
Friendlyを使ったwindowsアプリテスト自動化
Tatsuya Ishikawa
C sharp6
C sharp6
yone64
XAML & XAML
XAML & XAML
yone64
Reactive extensions
Reactive extensions
yone64
Wpfと非同期
Wpfと非同期
yone64
Recommandé
LINQ 概要 + 結構便利な LINQ to XML
LINQ 概要 + 結構便利な LINQ to XML
ShinichiAoyagi
An Internal of LINQ to Objects
An Internal of LINQ to Objects
Yoshifumi Kawai
Unityで Photonを使ってリアルタイム・マルチプレイヤーゲームを作っちゃおう【応用編】
Unityで Photonを使ってリアルタイム・マルチプレイヤーゲームを作っちゃおう【応用編】
GMO GlobalSign Holdings K.K.
Friendlyを使ったwindowsアプリテスト自動化
Friendlyを使ったwindowsアプリテスト自動化
Tatsuya Ishikawa
C sharp6
C sharp6
yone64
XAML & XAML
XAML & XAML
yone64
Reactive extensions
Reactive extensions
yone64
Wpfと非同期
Wpfと非同期
yone64
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Contenu connexe
En vedette
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
En vedette
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
もう一つのLINQ ~ Queryable入門
1.
Road of Linqulien
2.
@yone64 で Twitterやってたりします。
←こんなアイコン よく、「めとべや」とかに出没しています。 ◦ 1月にWPFで何かやるらしいよ~(宣伝 メトロってなんだったんだろう…
3.
LINQは次の2種類のデータソースを対象としてい る ◦ IEnumerable<T> 主にオンメモリのデータソースを表すInterface
LINQ to Object, LINQ to XML ◦ IQueryable<T> 主に外部のデータソースを表すInterface LINQ to SQL, LINQ to Entity ◦ 番外:IObservable<T> Reactive Extentions ↑今回は扱いません <(_ _)>
4.
オンメモリのデータに対し、各データを列挙しな がら、プログラムで評価していく手法。 ◦ 通常は、System.Linq.Enumerableクラスに定義されて いる拡張メソッド群を利用し、IEnumerable<T>を実装 するデータソースに対し評価を行う。 ◦ このあたりは、この後の@neueccさんのセッションで詳 しく聞けるに違いない。
(o゚▽゚)o 期待
5.
外部のデータソースに対して、各データソースの 問い合わせ言語を用いて問い合わせをおこなう ◦ 通常は、System.Linq.Queryableクラスに定義されてい る拡張メソッド群を利用し、IQueryable<T>を実装す るデータソースに対し評価を行う。 例えば、LINQ to
SQLだと ◦ C#(ラムダ式)で書かれた問合せ条件を、SQLに変換す る ◦ DB対しSQLを発行し問合せを行う ◦ 問合せの結果をオブジェクトに詰め返却する
6.
IQueryable<T> ◦ データソース自体を表すインターフェース ◦ IQueryProviderとExpressionをメンバとして持つ IQueryProvider,IQueryProvider<T> ◦
データソースに対し、問合せを行う本体。 ◦ 通常、LINQの利用者は意識しない。 ◦ CreateQueryとExecuteをメンバをとして持つ
7.
Expression ◦ C#の構文をデータ構造として保持するためのクラス群 ◦ ラムダ式からExpressionへの変換はコンパイラが行う System.Linq.Queryable ◦
IQueryable<T>に対する操作を行う拡張メソッド群を 定義している ◦ 各拡張メソッドでは、IQueryProvider.CreateQueryを 利用し、IQueryable<T>を生成する。
8.
C# の構文をデータ構造として、保持する仕組み コンパイル時に、ラムダ式から変換される。
9.
Expression<Func<int,Bool>> ┗Parameters ParameterExpression ┗Name : a ┗Type : int ┗Body BinaryExpression ┗Left ParameterExpression ┗Name
: a ┗Type : int ┗Right ConstantExpression ┗Value : 10 ┗Type : int ┗NodeType : GreaterThan ┗Type : bool ┗ReturnType : bool ラムダ式から左図のような 構造のExpression Tree が 作成される
10.
LINQを利用してATNDにアクセスしてみる ◦ LINQ to
ATND
11.
内部データ・外部データを意識することなく、統 一された記法でコーディングが可能。 ◦ とはいえ、アルゴリズム的には意識せずに組むわけには いかない 外部クエリのコンパイル時検証が可能 ◦ とはいえ、全て検証出来るわけではなく、実行時エラー になることも カスタムプロバイダの作成も可能 ◦
ちゃんとした物を作るのは、ちょーめんどい
12.
チュートリアル : IQueryable
LINQ プロバイダの作成 ◦ http://msdn.microsoft.com/jajp/library/bb546158(v=vs.90).aspx#fbid=4gWozV-bKl9 LINQ: Building an IQueryable provider series ◦ http://blogs.msdn.com/b/mattwar/archive/2008/11/18 /linq-links.aspx 式ツリー ◦ http://msdn.microsoft.com/jajp/library/bb397951.aspx C#たんっ!:2種類のLINQ ◦ http://csharptan.wordpress.com/2011/12/09/2%E7%A8 %AE%E9%A1%9E%E3%81%AElinq/
Télécharger maintenant