Specified Cast from a Materialized Type

The specified cast from a materialized ‘x’ type to the ‘y’ type is not valid.

This typically indicates that one of the data types in a domain model does not match up with the type that is returned from the database. Check to make sure that all used C# data types match with the returned data type for the associated SQL table.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *