CurrentUtcDateTime does not exist - Entity Framework and MySql

后端 未结 3 1663
悲&欢浪女
悲&欢浪女 2021-01-14 17:09

I am having a problem with canonical functions in Entity Framework 4.1 and MySql Connector/Net 6.4.3. According to Microsoft cannonical functions are understood and translat

3条回答
  •  无人及你
    2021-01-14 17:30

    Based on Bohemian's suggestion, I fixed this issue with a "bypass" function.

    CREATE FUNCTION `your_schema`.`CurrentUtcDateTime` ()
    RETURNS TIMESTAMP DETERMINISTIC
    RETURN UTC_TIMESTAMP();
    

提交回复
热议问题