Jeff-Lewis / codesmith

Automatically exported from code.google.com/p/codesmith
0 stars 0 forks source link

Feature, add GetAll query to manager template #121

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Plinqo is great and you have getbykey and various others in Managers and 
Queries, but I would also like to see getall/table added to default 
generated class, thanks.

Original issue reported on code.google.com by deleb...@gmail.com on 6 Aug 2009 at 3:03

GoogleCodeExporter commented 9 years ago
Hi,

You can just use the entity off the context.  

var db = new TrackerDataContext();
// get all users
var users = db.User;

Original comment by paul.wel...@gmail.com on 11 Aug 2009 at 1:55