The LINQ project (see [1]) is an extension to .NET Framework and most common .NET languages (C# and VB.Net) that extends these languages with query operators and some other features that make it possible to integrate queries in the languages. This article requieres some previous knowledge of LINQ and C# 3, so I recomend looking at the the specification at LINQ home page. 1What is and what isn't po
Instantly test any C#/F#/VB snippet or program Query databases in LINQ (or SQL) — SQL/Azure, Oracle, SQLite, Postgres & MySQL Enjoy rich output formatting, autocompletion with AI and integrated debugging Script and automate in your favorite .NET language Interoperate with xUnit, BenchmarkDotNet, Rx, MSAL, Excel and more Super lightweight — small and fast, with xcopy option Standard edition free wi
Extras Dynamically Composing Expression Predicates Suppose you want to write a LINQ to SQL or Entity Framework query that implements a keyword-style search. In other words, a query that returns rows whose description contains some or all of a given set of keywords. We can proceed as follows: IQueryable<Product> SearchProducts (params string[] keywords) { IQueryable<Product> query = dataContext.Pro
Parsing OData Paths, $select and $expand using the ODataUriParser UPDATE: This post was updated on May 29th 2013 to reflect changes to simplify the SelectExpandClause... Author: Alex D James Date: 05/10/2013 OData in WebAPI – RC release Next week we will release an official RC of the Microsoft ASP.NET WebAPI OData assembly. This marks... Author: Alex D James Date: 12/07/2012 Parsing $filter and $o
LINQ to Entitiesをやってて思うこと。 どんなSQLが発行されてるのか見たい!せめてSELECT文だけでも…。 というときのやりかたです。(LINQ to SQLだとLogプロパティにConsole.Outとか代入するだけで見れました。ただ、この方法だと全部出ちゃう。) LINQ to EneitiesのクエリはObjectQueryになるので、そいつのToTraceStringメソッドを呼び出してやると、SQLが取れるみたいです。 “みたい”というのはToTraceStringメソッドが「データ ソースに対して実行するコマンドを返します。」という説明文がMSDNに書いてあって、恐らくこの場合DBがデータソースだからSQLだろうという事です。 ということで、以下のようなメソッドを作っておくと吉。 [Conditional("DEBUG")] private static vo
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く