I have this store procedure...
select
a.IsDirectClient
from
dbo.Companies as a
where a.SchemeName = @SchemeName
group by a.IsDirectClient
which I'd like to use in my solution via linq and a data context. However I can't drop this store procedure onto the company table because I get the "... database objects return a schema that does not match the schema of the target data class..." error. (is this because it's returning a single field instead of "*" ?)
my question is how do I use this store procedure with linq, I can use the var object:
var directclient = db.DirectClientForScheme("xxx");
but then I don't have access to the 'IsDirectClient' property through intellisense.