when I want to load data from my mysql database, I always get this error:
Cannot convert MySQL datetime value to System.DateTime
This is my connection string:
<add name="gdmwebsiteEntities" connectionString="metadata=res://*/Models.DBModel.csdl|res://*/Models.DBModel.ssdl|res://*/Models.DBModel.msl;provider=MySql.Data.MySqlClient;provider connection string="server=localhost;User Id=root;database=gdmwebsite"" providerName="System.Data.EntityClient" />
I already added "Convert Zero Datetime = True" to add the end of my connection string, but nothing has changed.
<add name="gdmwebsiteEntities" connectionString="metadata=res://*/Models.DBModel.csdl|res://*/Models.DBModel.ssdl|res://*/Models.DBModel.msl;provider=MySql.Data.MySqlClient;provider connection string="server=localhost;User Id=root;database=gdmwebsite" Convert Zero Datetime=True Allow Zero Datetime=True" providerName="System.Data.EntityClient" />
Is there any other way to do this?
nielsv
source share