I have a problem with Entity Framework. It’s really slow to refresh the model (it takes about 15 minutes) after I done a database change.
The model isn’t that big (about 50 entities) but one of the entities is large (about 250 properties). I guess the problem is that large entity (in another project I have a model with more entities and no problem at all).
Is there a way to refresh the model and exclude the large entity (only include it when needed)?
Or do you have another idea how to fix this problem?
Thanks!
Edit:
Found this:
http://bugs.mysql.com/bug.php?id=60923
I found a solution that worked for med:
It seems that the MySql .Net Connector 6.3.5 has a bug.
It threats Timestamp in an incorrect way. When creating the Entity model TimeStamp properties are matched with a DateTimeOffset.
When I updated to the .Net Connector to 6.4.4 I had to change all the DateTimeOffset to DateTime.
After that the refresh of the model only took about 20 seconds.
I hope this will help someone else too.