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

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!

Print | posted on Thursday, March 27, 2008 6:26 PM | Filed Under [ C# ]

Powered by:
Powered By Subtext Powered By ASP.NET