How to promote and / or sell LINQ to a colleague?

How do you advertise and / or sell LINQ syntax for a colleague who doesn't see the benefits of a manual way of doing things?

An example of using Linq to Entity / Sql instead of using a simple ado.net without LINQ.

+5
source share
8 answers

I would personally start with LINQ to Objects. In this case, you do not need any buy-ins - you can use LINQ in your code, let it use foreach loops, conditions, etc. In his code ... and ultimately, he may notice that your code is more declarative, clear and short.

The decision to use ORM vs plain ADO.NET is a larger one, IMO - and one with a branch other than LINQ syntax.

+13

LINQ , , . , 100 .

+2

. , LINQ -, IEnumerable ( ), . , . SQL . . .

+2

, , , ... , .

+1

. , 20 2 3.

, .

+1

, , , ADO.NET. , , , , LINQ.

.NET 4.

0

:

  • , XML -
  • , , , SQL-
  • ,

, , , .

, , . LINQ , , , , .

0

Tell them what you changed your mind: now you do not like LINQ and think that this is a terrible way.

That should do the trick. Just kidding (mostly).

0
source

All Articles