New Posts New Posts RSS Feed: Error converting a property to enum (EF5 + DF2012)
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Error converting a property to enum (EF5 + DF2012)

 Post Reply Post Reply
Author
cefernan View Drop Down
Groupie
Groupie


Joined: 13-Jul-2012
Posts: 70
Post Options Post Options   Quote cefernan Quote  Post ReplyReply Direct Link To This Post Topic: Error converting a property to enum (EF5 + DF2012)
    Posted: 23-Oct-2012 at 12:25pm
I'm trying to convert a property to enum via EF Designer. I followed the steps described in: 
http://msdn.microsoft.com/en-us/data/jj248772.aspx

When I do it in my project, I receive the following error when I save the model:
Error 3 Running transformation: System.ArgumentException: typeUsage
   at IdeaBlade.EntityModel.Edm.Metadata.NamingService.FmtTypeName(TypeUsage typeUsage)
   at IdeaBlade.VisualStudio.OM.CodeGenerator.BaseDomainModelTemplate.FmtPropertyTypeName(EdmPropertyWrapper property)
   at IdeaBlade.VisualStudio.OM.CodeGenerator.BaseDomainModelTemplate.WriteEntityDataPropertyDefinition(EdmPropertyWrapper property)
   at IdeaBlade.VisualStudio.OM.CodeGenerator.BaseDomainModelTemplate.<>c__DisplayClass55.<WriteEntityDataProperty>b__54()
   at IdeaBlade.VisualStudio.OM.CodeGenerator.BaseDomainModelTemplate.WriteRegion(String regionName, Action action)
   at IdeaBlade.VisualStudio.OM.CodeGenerator.BaseDomainModelTemplate.WriteEntityDataProperty(EdmPropertyWrapper property)
   at IdeaBlade.VisualStudio.OM.CodeGenerator.BaseDomainModelTemplate.<>c__DisplayClass52.<WriteEntityDataProperties>b__51()
   at IdeaBlade.VisualStudio.OM.CodeGenerator.BaseDomainModelTemplate.WriteRegion(String regionName, Action action)
   at IdeaBlade.VisualStudio.OM.CodeGenerator.BaseDomainModelTemplate.WriteEntityDataProperties(EntityOrComplexTypeWrapper entityOrComplexType)
   at IdeaBlade.VisualStudio.OM.CodeGenerator.BaseDomainModelTemplate.<>c__DisplayClass41.<WriteEntityClass>b__40()
   at IdeaBlade.VisualStudio.OM.CodeGenerator.BaseDomainModelTemplate.WriteCodeDef(ICodeDef def, Action bodyAction)
   at IdeaBlade.VisualStudio.OM.CodeGenerator.BaseDomainModelTemplate.<>c__DisplayClass41.<WriteEntityClass>b__3f()
   at IdeaBlade.VisualStudio.OM.CodeGenerator.BaseDomainModelTemplate.WriteRegion(String regionName, Action action)
   at IdeaBlade.VisualStudio.OM.CodeGenerator.BaseDomainModelTemplate.WriteEntityClass(EntityOrComplexTypeWrapper entityOrComplexType)
   at IdeaBlade.VisualStudio.OM.CodeGenerator.BaseDomainModelTemplate.WriteEntityClasses(CsdlWrapper csdl)
   at IdeaBlade.VisualStudio.OM.CodeGenerator.BaseDomainModelTemplate.WriteDomainModel(CsdlWrapper csdl)
   at IdeaBlade.VisualStudio.OM.CodeGenerator.BaseDomainModelTemplate.GenerateDomainModel(EdmxWrapper edmx)
   at IdeaBlade.VisualStudio.OM.CodeGenerator.BaseDomainModelTemplate.Generate()
   at Microsoft.VisualStudio.TextTemplating658B6893D562081BC01C77E3BF511F814371987403A2727887BD032849A3FB190EDFF090A35CBF74001D5C029C780425DAC42CC4FDC9CBA3DE3364489BE98EEE.GeneratedTextTransformation.TransformText() in d:\GIT\.Net\Projects\Crmall 4.0\Source\DomainModel\CrmallModel.edmx.tt:line 16 d:\GIT\.Net\Projects\Crmall 4.0\Source\DomainModel\CrmallModel.edmx.tt 16 1 DomainModel (DomainModel\DomainModel)

Just to certify, I've created a new project without DevForce (just EF5) and executed the same steps. It worked perfectly.

Am I missing something?

Thanks.
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 23-Oct-2012 at 1:21pm
No, you're not missing anything.  We don't support enums in DF2012 just yet. 
Back to Top
cefernan View Drop Down
Groupie
Groupie


Joined: 13-Jul-2012
Posts: 70
Post Options Post Options   Quote cefernan Quote  Post ReplyReply Direct Link To This Post Posted: 24-Oct-2012 at 4:24am
Ok. Will it be released in the official version?
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 24-Oct-2012 at 9:20am
Unfortunately we won't have enum support in the RTW, but should before the end of this year.
Back to Top
cefernan View Drop Down
Groupie
Groupie


Joined: 13-Jul-2012
Posts: 70
Post Options Post Options   Quote cefernan Quote  Post ReplyReply Direct Link To This Post Posted: 31-Oct-2012 at 8:47am
Ok, thanks Kim!
Back to Top
cefernan View Drop Down
Groupie
Groupie


Joined: 13-Jul-2012
Posts: 70
Post Options Post Options   Quote cefernan Quote  Post ReplyReply Direct Link To This Post Posted: 04-Dec-2012 at 9:09am
Hello,

Do you have any news about "Enum support"?
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 04-Dec-2012 at 9:12am
Enums are supported in the current bits we're now testing.  We don't yet have a release date, but it should be later this month.
Back to Top
cefernan View Drop Down
Groupie
Groupie


Joined: 13-Jul-2012
Posts: 70
Post Options Post Options   Quote cefernan Quote  Post ReplyReply Direct Link To This Post Posted: 04-Dec-2012 at 9:25am
Nice, thanks Kim.
Back to Top
cefernan View Drop Down
Groupie
Groupie


Joined: 13-Jul-2012
Posts: 70
Post Options Post Options   Quote cefernan Quote  Post ReplyReply Direct Link To This Post Posted: 20-Dec-2012 at 11:39am
Today I updated DevForce to 7.0.3 and now, I will enjoy Enum Support :)

Edited by cefernan - 20-Dec-2012 at 11:39am
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down