Data Layer Best Practices

后端 未结 8 1266
甜味超标
甜味超标 2021-02-04 12:43

I am in the middle of a \"discussion\" with a colleague about the best way to implement the data layer in a new application.

One viewpoint is that the data layer should

8条回答
  •  温柔的废话
    2021-02-04 13:45

    Check out Linq to SQL, if I were creating a new application right now I would consider relying on an entirely Linq based data layer.

    Other than that I think it's good practise to de-couple data and logic as much as possible, but that isn't always practical. A pure separation between logic and data access makes joins and optimisations difficult, which is what makes Linq so powerful.

提交回复
热议问题