tags:

views:

38

answers:

1

How would I convert this kind of expression in VB.NET? I'm stomped!

bool exists=repo.Exists<Post>(x=>x.Title=="My Title");

This is from the SubSonic docs here: http://subsonicproject.com/docs/Using_SimpleRepository

Thanks in advance!

+2  A: 
Dim exists = repo.Exists(Of Post)(Function(x) x.Title = "My Title")
Mehrdad Afshari