Scaffold Database Context Error “Object cannot be cast from DBNull to other type”
I am using this command in the Package Manager Console:
Scaffold-DbContext "data source=SOURCENAME;initial catalog=INTERBASE_DB;user id=username;password=password" InterBaseSQL.EntityFrameworkCore.InterBase -Tables tableName –o dbModel
It builds correctly and then gives me the Object cannot be cast from DBNull to other types error.