EDM MySQL Enums
EDM MySQL Enums
Hi everyone,
Does anyone know away to get around the lack of enum support in the entity framework?
Thanks pleb
Does anyone know away to get around the lack of enum support in the entity framework?
Thanks pleb
I'm not sure how to proceed because any table that contains an ENUM (and I guess SET) can't be used. Sure you can use every column bar that those ones, but this isn't a good situation to be in.
I wondering if you could make sense to convert MySQL Enum or Set to type string? I envision ENUM would be plain old string and SET would be comma separated string.
At least this way you would work with tables which contain these types. I read awhile ago that Enum support in the EDM isn't planned until version 2, so a long way off. I guess SET (ENUM with flags) would be never.
What do you think?
Pleb
I wondering if you could make sense to convert MySQL Enum or Set to type string? I envision ENUM would be plain old string and SET would be comma separated string.
At least this way you would work with tables which contain these types. I read awhile ago that Enum support in the EDM isn't planned until version 2, so a long way off. I guess SET (ENUM with flags) would be never.
What do you think?
Pleb
-
- Posts: 43
- Joined: Thu 19 Jun 2008 14:30
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24
Hi Alexey
Yeah I figure this would be a tuff one. May I suggest the conversion to a string type for the following reasons. When MS do implement Enum support you don't want be stuck supporting two implementations. An Enum can easily be converted to a string. You've already got support for an the string type.
Regards,
Pleb
Yeah I figure this would be a tuff one. May I suggest the conversion to a string type for the following reasons. When MS do implement Enum support you don't want be stuck supporting two implementations. An Enum can easily be converted to a string. You've already got support for an the string type.
Regards,
Pleb
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24