Advantages and Disadvantages of LINQ


Advantages
  • Quick turn around for development
  • It is a cleaner and typesafety.
  • Queries can be dynamically
  • Tables are automatically created into class
  • Columns are automatically created into properties
  • Relationship are automatically appeaded to classes
  • Lambda expressions are awesome
  • Data is easy to setup and use
  • It is checked by the compiler instead of at runtime
  • It can be debugged easily.
  • It can be used against any datatype - it isn't limited to relational databases, you can also use it against XML, regular objects.
  • It can able to query not just tables in a relational database but also text files and XML files.
Disadvantages
  • No clear outline for Tiers
  • No good way of view permissions
  • Small data sets will take longer to build the query than execute
  • There is an overhead for creating queries
  • When queries are moved from sql to application side, joins are very slow
  • DBML concurrency issues
  • Hard to understand advance queries using Expressions
  • LINQ sends the entire query to the DB hence takes much network traffic but the stored procedures sends only argument and the stored procedure name. It will become really bad if the queries are very complex. 
  •  Preformance is degraded if we don't write the linq query correctly.
  • If you need to make changes to the way you do data access, you need to recompile, version, and redeploy your assembly

Comments

Popular posts from this blog

Display multiple marker point on Google Map with same location or same Longitude,Latitude

Implementing Zoom functionality in asp.net

Check Session Timeot for Whole Application