use Extension Methods for this:
public static IEnumerable<MyEntity> GetByUser(this IEnumerable<MyEntity> source, UserEntity userrecord)
{
return source.Where(w=>w.userid == userrecord.id);
}
or generic way for each inherited:
public static IEnumerable<T> GetByUser(this IEnumerable<T> source, UserEntity userrecord) where T: MyEntity
{
return source.Where(w=>w.userid == userrecord.id);
}
and u can use it like:
var a0 = adc.answersfios.GetByUser(userrecord);