I'm using a Entity Framework 6 implementation on my Windows computer and it's working fine. In order to use on a Linux computer I tried to run the project using Mono. When the program tries to access EF6 I receive the following error:
System.InvalidOperationException: The configured column orders for the table 'Table' contains duplicates. Ensure the specified column order values are distinct.
at System.Data.Entity.ModelConfiguration.Conventions.ColumnOrderingConventionStrict.ValidateColumns (System.Data.Entity.Core.Metadata.Edm.EntityType table, System.String tableName) [0x00000] in <filename unknown>:0
at System.Data.Entity.ModelConfiguration.Conventions.ColumnOrderingConvention.Apply (System.Data.Entity.Core.Metadata.Edm.EntityType item, System.Data.Entity.Infrastructure.DbModel model) [0x00000] in <filename unknown>:0
I was able to find a solution. Some of my entities were using the attribute Column. In my case I was using [Column(TypeName = "Date")]
. When I have removed this attribute, I was able to run the entity framework on my Linux server.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With