All These Things That I've Done

Apply the programming model to everyday programming problems
posts - 83, comments - 71, trackbacks - 4

My Links

News


View Gianluca Carucci's profile on LinkedIn

Tag Cloud

Archives

Post Categories

Image Galleries

Blogs

Links

giovedì 27 marzo 2008

Il rename refactoring sulle query Linq da Visual Studio

L'Entity Framework e Linq To Sql avranno i suoi (grossi) limiti, ma vedere che da:

IEnumerable<CategoryView> views =

from d in categories

select new CategoryView() { Id = d.Id, Name = d.Name, ImageUrl = d.ImageUrl, ImageIconUrl = d.ImageIconUrl };

con un semplice CNTRL-R-R il risultato è questo:

 

IEnumerable<CategoryView> views =

from e in categories

select new CategoryView() { Id = e.Id, Name = e.Name, ImageUrl = e.ImageUrl, ImageIconUrl = e.ImageIconUrl };

rende un uomo influenzato felice!

posted @ lunedì 1 gennaio 0001 00:00 | Feedback (0) | Filed Under [ C# ]

Powered by:
Powered By Subtext Powered By ASP.NET