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