static bool isValidEntityType(Type type) { return type != dynamic && type != Object && type != DateTime && !isCollectionType(type) && !isPrimitiveType(type); }