Entity Framework core Code First and MySql DateTime precision?

Viewed 616

I'm using EF core with the latest MySql .Net Connector in Code First and I can't find how to set my DateTime column precision to 6, it always seems to be 0 (no milliseconds)!

I tried:

dbModelBuilder.Entity<InstructionsCxl>().Property(InstructionsCxl => InstructionsCxl.Instantiated)
                .HasColumnType("DATETIME");
0 Answers
Related