Tuesday, November 30, 2010

Castle ActiveRecord + Linq = Programming goodness.

I love linq and lamda's. Combined linq with AR for the first time today to get this gem:
var existing = from s in ActiveRecordLinq.AsQueryable<ScannedEntity>()
where s.FileName == f.FullName
select s;

No comments:

Post a Comment