zzzprojects / EntityFramework-Effort

Entity Framework Effort is a powerful tool that enables a convenient way to create automated tests for Entity Framework based applications.
https://entityframework-effort.net/
MIT License
431 stars 99 forks source link

MaxLength and FixedLength facet isn't allowed for properties of type time #80

Open sl-jet opened 7 years ago

sl-jet commented 7 years ago

I think this is a bug in Effort.EF6 when Effort is trying to convert MySql.Time data type with the Effort.Provider where my entity framework obviously did not have the MaxLength and FixedLength facet defined for MySql.Time type. But the following error hits when this line, Effort.EntityConnectionFactory.CreateTransient is executed:

(0,0) : error 0063: MaxLength facet isn't allowed for properties of type time (0,0) : error 0063: FixedLength facet isn't allowed for properties of type time

I've modified the source in StorageTypeConverter.cs at line 58 to add in the code to remove both of the facets if the type is MySql.Time for now and compiled it to use it in our project.

It will be good if the this bug is fixed and to download from nuget is the working copy.

Thanks!

Thoumou commented 5 years ago

We have exactly the same problem in our project =/ And the problem only appears if we use the MySQL provider.

Thanks too ;)