public static bool IsStronglyTypedListDataSource(this IDataSource bodyDataSource)
{
var baseType = bodyDataSource.GetType();
if (!baseType.IsGenericType) return false;
return baseType.GetGenericTypeDefinition() == typeof(StronglyTypedListDataSource<>);
}