Using the GenerateScriptTypes attribute is not supported for types in the following categories: primitive types; DateTime; ...

Using the GenerateScriptTypes attribute is not supported for types in the following categories: primitive types; DateTime; generic types taking more than one parameter; types implementing IEnumerable or IDictionary; interfaces; Abstract classes; classes without a public default constructor.