Q.
What is LINQ to Sharepoint ? Ans. LINQ is a feature of the
programming languages C# 3.0 and Visual Basic .NET
LINQ
adds, to each of the languages, a SQL-like syntax and vocabulary for querying
data sources.
LINQ
to Sharepoint allows developers to use SQL-like syntax to query Lists and
Libraries in Sharepoint.
LINQ
to Sharepoint internally converts the LINQ query to a CAML query to fetch
records
Advantage
: Strongly typed access to the entities of the list.
Disadvantage
: If the new columns are added or its datatype changed, the datacontext class
used by LINQ is no longer valid and may break the code
Q.
Name the tool used to create DataContent classes for use in LINQ queries? Ans.
SPMetal.exe
Q.
What are the advantages and disadvantages of LINQ to Sharepoint ? Ans. Advantages:
Intellisense
Strongly
typed access to the entities of the list
Faster
development
Simplify
complex queries
Disadvantages:
If
the new columns are added or its datatype changed, the datacontext class used
by LINQ is no longer valid and may break the code
Extra
layer to the actual CAML query
No comments:
Post a Comment