c# - Cast IDbSet<Foo> to IDbSet<dynamic> -
i have utility method looks this
void apply<t>(iqueryable<t> queryable) t : class {...} i doing reflection instance of idbset<x> know x fits constraints. i'd cast idbset<dynamic> compiler let through doing dbset ibset<dynamic> returns null. how can this?
i realize cast whole thing dynamic there few other reasons prefer avoid doing that.
Comments
Post a Comment