Entity Framework in layered architecture

后端 未结 3 674
悲哀的现实
悲哀的现实 2021-02-03 12:38

I am using a layered architecture with the Entity Framework. Here\'s What I came up with till now (All the projects Except UI are class library):

  • Enti

3条回答
  •  庸人自扰
    2021-02-03 13:00

    1) Layers seem fine to me

    2) Dont see a problem with the connection string being in your UI app.config. Has to be defined someplace. You could copy your DAL.config to your application BIN folder that likely had the connection string created in it when you created the project but that to me would not seem right. I would personally manage it in your UI layer app.config

提交回复
热议问题