BlueJayBird
BlueJayBird
CC#
Created by BlueJayBird on 12/9/2022 in #help
✅ Is it possible to disable these properties on EF6? Web API 2 project, multi-layered, NF472
This seems to have disabled the use of virtual fields in the entities I was retrieving from the DB using EF.
15 replies
CC#
Created by BlueJayBird on 12/9/2022 in #help
✅ Is it possible to disable these properties on EF6? Web API 2 project, multi-layered, NF472
_context.Configuration.ProxyCreationEnabled = proxyCreationEnabled;
15 replies
CC#
Created by BlueJayBird on 12/9/2022 in #help
✅ Is it possible to disable these properties on EF6? Web API 2 project, multi-layered, NF472
I solved this by changing the following configuration in the EF context:
15 replies
CC#
Created by BlueJayBird on 12/9/2022 in #help
✅ Is it possible to disable these properties on EF6? Web API 2 project, multi-layered, NF472
Ok, I've read your comments, guys. I'll try to fix this next week. See you then.
15 replies
CC#
Created by BlueJayBird on 12/9/2022 in #help
✅ Is it possible to disable these properties on EF6? Web API 2 project, multi-layered, NF472
So, you're saying that AutoMapper is the way to go, and getting rid of the virtual part is bad idea. Right?
15 replies
CC#
Created by BlueJayBird on 10/27/2022 in #help
MVC - Razor Edit and View mode implementation on Model(s) and Controller(s)
Probably that's the best solution. But I was wondering if that's the best practice, and if it's not, what alternatives we have available.
7 replies
CC#
Created by BlueJayBird on 10/27/2022 in #help
MVC - Razor Edit and View mode implementation on Model(s) and Controller(s)
What do you mean? Are you talking about partial views?
7 replies
CC#
Created by BlueJayBird on 9/19/2022 in #help
What should 'Service Layer' do? (MVC; layered architecture)
31 replies
CC#
Created by BlueJayBird on 9/19/2022 in #help
What should 'Service Layer' do? (MVC; layered architecture)
The one you mention is from the same author I think.
31 replies
CC#
Created by BlueJayBird on 9/19/2022 in #help
What should 'Service Layer' do? (MVC; layered architecture)
I'm reading right now "Implementing Domain-Driven Design" by Vaughn Vernon.
31 replies
CC#
Created by BlueJayBird on 9/19/2022 in #help
What should 'Service Layer' do? (MVC; layered architecture)
My best guess is that I need to dive into DDD concepts on services, but I'm barely learning about them.
31 replies
CC#
Created by BlueJayBird on 9/19/2022 in #help
What should 'Service Layer' do? (MVC; layered architecture)
What's the exact difference between Admin and Operations? Honestly I'm pretty clueless about what they are supposed to do, and I can't way clearly from the actual methods that can be seem in the code of those files.
31 replies
CC#
Created by BlueJayBird on 9/19/2022 in #help
What should 'Service Layer' do? (MVC; layered architecture)
31 replies
CC#
Created by BlueJayBird on 9/19/2022 in #help
What should 'Service Layer' do? (MVC; layered architecture)
Ok. Thanks for that, @Fyren. One last question, about the naming of my services (I didn't name them).
31 replies
CC#
Created by BlueJayBird on 9/19/2022 in #help
What should 'Service Layer' do? (MVC; layered architecture)
3) I don't get the Integration. part from your example. I thought it was the actual Data layer, but it looks like something else since it is using the Services.
31 replies
CC#
Created by BlueJayBird on 9/19/2022 in #help
What should 'Service Layer' do? (MVC; layered architecture)
2) ActivateProducts(customerId) could call from the controller? The call would be made like this: Controller → Service layer → Data layer
31 replies
CC#
Created by BlueJayBird on 9/19/2022 in #help
What should 'Service Layer' do? (MVC; layered architecture)
1) The third layer you not mention is the Presentation Layer. Right? Should I expect to have an MVC project there?
31 replies
CC#
Created by BlueJayBird on 9/19/2022 in #help
What should 'Service Layer' do? (MVC; layered architecture)
@Fyren Ok. Thanks for all that information. I have some additional questions for you.
31 replies
CC#
Created by BlueJayBird on 9/19/2022 in #help
What should 'Service Layer' do? (MVC; layered architecture)
In that case, were would you place the business logic and why?
31 replies