What could possibly be wrong here?
public Contact GetContact(int key)
{
var contact = new ContactManagerDB.Select
.From<Contact>()
.Where(ContactsTable.IdColumn).IsEqualTo(key)
.ExecuteSingle<Contact>();
return contact;
}
ReSharper 4.5: Cannot resolve symbol Select.
Oh, I should mention that the classes are working fine using Linq.
Well, the documentation example is wrong. Here’s the correct query notation:
The discrepancy being the missing parentheses after “ContactManagerDB()”.
Someone should update the queries in the SubSonic Active Record Web site documentation.