Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is it?
Message
From
19/08/2014 06:18:41
 
General information
Forum:
ASP.NET
Category:
Entity Framework
Title:
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01606037
Message ID:
01606054
Views:
73
Where exactly is that code. I don't see it in the ReversePoco T4 ?
Looks more like EF code..

>Hi everybody,
>
>We're switching from EDMX to Reversed POCO. I see the following code
>
>
>       
>            EntitySet entitySet = CoreContext.CreateObjectSet<T>().EntitySet;           
>            ReadOnlyMetadataCollection<EdmProperty> keys = entitySet.ElementType.KeyProperties;
>
>            foreach (EdmProperty key in keys)
>
>                 if (key.IsFixedLength.HasValue && key.IsFixedLength.Value)
>                {
>                    if (key.PrimitiveType.PrimitiveTypeKind == PrimitiveTypeKind.String)
>                        etc.
>
>
>
>The IsFixedLength property is false and it doesn't go into the loop. However, the actual column in the table is CHAR(6), so it is supposed to be FixedLength. I think when we were using EDMX, that property was correctly set.
>
>What should I do to fix the problem now?
>
>UPDATE. I added a question on Reverse POCO Generator site. The author seems very responsive so I hope to get an answer soon.
>
>http://visualstudiogallery.msdn.microsoft.com/ee4fcff9-0c4c-4179-afd9-7a2fb90f5838/view/Discussions/1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform