GlutenBoy
GlutenBoy

Reputation: 103

C# Linq to VB.NET (not a From In Where ... query style)

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!

Upvotes: 2

Views: 163

Answers (1)

Mehrdad Afshari
Mehrdad Afshari

Reputation: 421998

Dim exists = repo.Exists(Of Post)(Function(x) x.Title = "My Title")

Upvotes: 2

Related Questions