It’s important to know clearly what Microsoft set out to achieve with LINQ.LINQ ships with implementations that support querying against regular object collections, databases, entities, and XML sources.
Because LINQ supports rich extensibility, developers can also easily integrate it
with other data sources and providers.
Another essential feature of LINQ is that it is strongly typed. This means the
following:
■ We get compile-time checking for all queries. Unlike SQL statements today,
where we typically only find out at runtime if something is wrong, this
means we can check during development that our code is correct. The
direct benefit is a reduction of the number of problems discovered late in
production. Most of the time, issues come from human factors. Strongly
typed queries allow us to detect early typos and other mistakes made by the
developer in charge of the keyboard.
■ We get IntelliSense within Visual Studio when writing LINQ queries. This
not only makes typing faster, but also makes it much easier to work against
both simple and complex collection and data source object models.
Because LINQ supports rich extensibility, developers can also easily integrate it
with other data sources and providers.
Another essential feature of LINQ is that it is strongly typed. This means the
following:
■ We get compile-time checking for all queries. Unlike SQL statements today,
where we typically only find out at runtime if something is wrong, this
means we can check during development that our code is correct. The
direct benefit is a reduction of the number of problems discovered late in
production. Most of the time, issues come from human factors. Strongly
typed queries allow us to detect early typos and other mistakes made by the
developer in charge of the keyboard.
■ We get IntelliSense within Visual Studio when writing LINQ queries. This
not only makes typing faster, but also makes it much easier to work against
both simple and complex collection and data source object models.
Comments
Post a Comment