Resolving naming convention conflict between entities in EF4 and our database standards?

前端 未结 3 870
我在风中等你
我在风中等你 2021-01-14 13:31

I\'m investigating replacing or supplementing our home grown ORM system with the Entity Framework 4, and I\'m noticing that the latter may end up causing a conflict between

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-14 13:55

    The correct solution is to change your database naming convention.

    Why should the tail wag the dog? In modern programming most of the action takes place in the highly scalable business/service layer, not the database. Programmers should use a naming convention that works for both - and it should cater to the needs of the application developer who is going to be working with these objects day in and day out. In some cases it should probably cater to the needs of the front end developer, in others the server side.

    The whole purpose of a naming convention is to reduce complexity. Yet the accepted solution here is to implement all kinds of additional complexity. And every other ORM would have to come up with their own convoluted solution to this artificial problem.

提交回复
热议问题