If it's a special one-off case, you could do:
if (typeof(T) == typeof(User))
{
return db.GetView<UserActive>().AsQueryable<UserActive>();
}
else
{
return db.GetTable<T>().AsQueryable<T>();
}
This of course makes an assumption on how you would access your useractive view using your linq provider :-P YMMV
Joel Martinez
2009-06-01 19:49:49