标签: c# mysql entity-framework code-first
我在EF First中将EF核心与最新的MySql .Net Connector一起使用,但是我找不到如何将DateTime列精度设置为6,它似乎总是为0(无毫秒)!
我尝试过:
dbModelBuilder.Entity<InstructionsCxl>().Property(InstructionsCxl => InstructionsCxl.Instantiated) .HasColumnType("DATETIME");