Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mono Entity Framework 6 Duplicates

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
like image 970
Michael Avatar asked Nov 02 '22 04:11

Michael


1 Answers

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.

like image 186
Michael Avatar answered Nov 09 '22 12:11

Michael