MVC

  • Home
  • HTML
    • Overview
    • Formatting
  • Java Script
    • Overview
    • Validation
  • CSS
    • Overview
  • Sql
    • Overview
    • SQL Select
    • SQL Command
    • Advance Query
    • SQL Create
    • Function
    • Function vs StoreProcedure
    • Stored Procedures
  • MVC
    • OverView
    • Evolution of MVC
    • Install VisualStudio-2015
    • Create First Application
  • LINQ
    • Introduction
  • Privacy Policy

Sunday, 2 April 2017

Advantage and Disadvantage of LINQ

  Unknown       05:53       Introduction       No comments    

Advantages
  1. Faster development
  2. Unit of work pattern (context)
  3. Auto-generated domain objects that are usable small projects
  4. Lazy loading.
  5. Learning to write linq queries/lambdas is a must learn for .NET developers.
  6. Quick turn around for development
  7. Queries can be dynamically
  8. Tables are automatically created into class
  9. Columns are automatically created into properties
  10. Relationship are automatically appeaded to classes
  11. Lambda expressions are awesome
  12. Data is easy to setup and use
  13. LINQ offers a common syntax for querying any type of data sources
  14. LINQ expedites development time by catching errors at compile time and includes IntelliSense & Debugging support
  15. LINQ expressions are Strongly Typed.

Disadvantages
  1. No clear outline for Tiers
  2. No good way of view permissions
  3. Small data sets will take longer to build the query than execute
  4. There is an overhead for creating queries
  5. When queries are moved from sql to application side, joins are very slow
  6. DBML concurrency issues
  7. Hard to understand advance queries using Expressions

Difference between LINQ and Stored Procedure

  • In this Artical differences existing between LINQ and Stored procedures. These differences are mentioned below.
  • Stored procedures are much faster than a LINQ query as they follow an expected execution plan.
  • It is easy to avoid run-time errors while executing a LINQ query than in comparison to a stored procedure as the former has Visual Studio’s Intelligense support as well as full-type checking during compile-time.
  • LINQ allows debugging by making use of .NET debugger which is not in case of stored procedures. Easly debugg in linq
  • LINQ offers support for multiple databases in contrast to stored procedures in SQL, where it is essential to re-write the code for diverse types of databases.
  • Deployment of LINQ based solution is easy and simple in comparison to deployment of a set of stored procedures in SQL. Using linq query it is complex when use jin in query and performance is slow as compare store procedure in Sql

Difference between LINQ to SQL v/s Entity Framework

LINQ to SQL Entity Framework
It is only works with SQL Server Database you can write query with sql. It can works with various multiple databases like Oracle, DB2, MYSQL, SQL Server etc.
LINQ to SQL use then generates .dbml to maintain the relation. It generates an .edmx files initially. The relation is maintained using 3 different files .csdl, .msl and .ssdl
LINQ to SQL it has not support for complex type. Entity Framework has support for complex type.
LINQ to SQL allows only one to one mapping between the entity classes and the relational tables /views. Entity Framework allows one-to-one, one-to-many & many-to-many mappings between the Entity classes and the relational tables /views
Linq to sql allows you to query data using DataContext. Entity Framework allows you to query data using EntitySQL, ObjectContext, DbContext.
LINQ to SQL provides a tightly coupled approach. Entity Framework provides a loosely coupled approach. Since its code first approach allow you to use Dependency Injection pattern which make it loosely coupled .
LINQ to SQL can be used for rapid application development only with SQL Server. Entity Framework can be used for rapid application development with RDBMS like SQL Server, Oracle, DB2 and MySQL etc.
LINQ to SQL is a complex type and it reduce performance as compare to Entity Framework. Entity Framework is fast and less complex as compare to LINQ to SQL.
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
Email This BlogThis! Share to X Share to Facebook
Newer Post Older Post Home

0 comments :

Post a Comment

learningmvctutorial

Popular Posts

  • Overview
      SQL (Structured Query Language)   SQL  is a language that interacts with the database on the server-side. This dynamite duo has changed ...
  • Overview of HTML
    What is HTML? First developed by Tim Berners-Lee in 1990 . HTML is used to create electronic documents (called pages) that are displ...
  • Difference Between function v/s store procedure
    Definition  of Store Procedure In a database management system (DBMS), a  stored procedure  is a set of Structured Query Language (SQL...
  • SQL Select
    The SQL SELECT Statement The SELECT statement is used to select data from a database. SQL SELECT Syntax SELECT column_name , column_n...
  • What is LINQ
    LINQ  (Language Integrated Query) is a Microsoft programming model and methodology that essentially adds formal query capabilities into Mic...
  • What is Function in Sql Server
    A function is a block of code that has a name and it has a property that it is reusable. We use function in store Procedure and queries in...
  • Create Duplicate Table of existing table in SQL Server
    In This Tutorial we create table and want to same structure and same data then We create new table with data type after that  insert in ta...
  • About Javascript
    What is JavaScript? JavaScript was designed to add interactivity to HTML pages JavaScript is a scripting language A scripting langua...
  • Operator in JavaScript
    What is an operator? JavaScript has both binary and unary operators, and one special ternary operator, the conditional operator. A binar...
  • Open Application in MVC
    We want to create application in MVC first of how we create first application Show Steps   as below-     STEP 1 .  Start Computer and  I...

Blog Archive

  • ▼  2017 ( 35 )
    • ►  November ( 1 )
    • ►  October ( 2 )
    • ►  September ( 4 )
    • ►  August ( 1 )
    • ►  July ( 1 )
    • ►  May ( 3 )
    • ▼  April ( 7 )
      • Fetch Unique random Record in sql server
      • Operator in JavaScript
      • Conditional Statements in JavaScript
      • Create Duplicate Table of existing table in SQL Se...
      • Email Validation using Regex Expression in Javascript
      • About Javascript
      • Advantage and Disadvantage of LINQ
    • ►  March ( 13 )
    • ►  February ( 3 )
Powered by Blogger.

Categories

  • AdvanceQuery
  • CreateApplication
  • CreateDb
  • CssOverview
  • Evolution
  • Formatting
  • Function
  • FunctionVSSp
  • HtmlOverview
  • InstallVisualStudio
  • Introduction
  • javascriptOverview
  • JsValidation
  • Mvc-vs-Asp.Net
  • OverView
  • Select
  • SqlCommand
  • SQLOverview
  • StoredProcedures

Text Widget

Sample Text

Pages

  • Home

Copyright © MVC | Powered by Blogger
Design by Vibha Acharya