Customize materialization process in an entity framework provider
问题 I have a problem with booleans returned by an entity framework provider I'm writing. The EF expecting a boolean while the ADO provider returns an Int16 so the EF raises an InvalidOperationException The specified cast from a materialized 'System.Int16' type to the 'System.Boolean' type is not valid. Is there a way to customize the materialization process of the entity framework to make it call a materialization process implemented by the provider? EDIT Partially found a solution... I can't