How can NodaTime be used with EF Code First?

前端 未结 3 2220
-上瘾入骨i
-上瘾入骨i 2020-12-04 15:56

I really want to be able to use NodaTime in my Entity Framework Code First database projects but haven\'t found a \"clean\" way to do it. What I really want to do is this:<

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-04 16:15

    No "clean" way that I'm aware of because EF, as of this writing, doesn't have a mechanism for simple type conversion like you see in NHibernate (IUserType). A real limitation in EF as an ORM which causes me to change my domain to suit my ORM.

提交回复
热议问题