views:

43

answers:

1

and have it map to a strongly typed object?

Suppose I have a entity Blog with Id,Name,Posted,IsUglyFace,YerMom

but I just only want/need Name and Posted columns. I tried to do something like:

IList blogs = repository.SimpleQuery("select Name, Posted from Blog");

This dumps out a ton more SQL and gives back an error, could not map to given object.