sepp
sepp
CC#
Created by sepp on 9/18/2023 in #help
❔ Where to store files in N-Tier API Project
I have also mappers under common is it a bad approach? and what are your suggestions where should I place it? I am a newbie so I am very lost about structuring the proejct:(
10 replies
CC#
Created by sepp on 9/18/2023 in #help
❔ Where to store files in N-Tier API Project
And LocalStorageService, S3Service etc
10 replies
CC#
Created by sepp on 9/18/2023 in #help
❔ Where to store files in N-Tier API Project
I am thinking something like Services/Common/StorageService/IStorageService
10 replies
CC#
Created by sepp on 9/18/2023 in #help
❔ Where to store files in N-Tier API Project
Currently I am storing them under another layer called LocalFileStorage and I have StorageService under Services layer (Services/Common) do you guys think is it bad structure??
10 replies
CC#
Created by sepp on 9/18/2023 in #help
✅ Layered architecture EF Core error when creating migrations
Oh alright then, I assume problem solved for now. Thanks for helping 😅
8 replies
CC#
Created by sepp on 9/18/2023 in #help
✅ Layered architecture EF Core error when creating migrations
Another question, is it okay to have ef core packages installed both dal and api layer?
8 replies
CC#
Created by sepp on 9/18/2023 in #help
✅ Layered architecture EF Core error when creating migrations
Oddly after restarting the Visual Studio add migration worked
8 replies
CC#
Created by sepp on 9/18/2023 in #help
✅ Layered architecture EF Core error when creating migrations
I have tried that but I get different error which says
Your startup project 'MeetingAppDemo.API' doesn't reference Microsoft.EntityFrameworkCore.Design. This package is required for the Entity Framework Core Tools to work. Ensure your startup project is correct, install the package, and try again.
Your startup project 'MeetingAppDemo.API' doesn't reference Microsoft.EntityFrameworkCore.Design. This package is required for the Entity Framework Core Tools to work. Ensure your startup project is correct, install the package, and try again.
I tried installing EFCore and Design in my API project but nothing changes
8 replies
CC#
Created by sepp on 9/12/2023 in #help
❔ Question about Layered Structure
I haven't wrote the DTOs yet, but I was thinking to place them under Services layer since I think it is bussines logic to map objects
5 replies
CC#
Created by sepp on 9/11/2023 in #help
✅ .NET Core N-Tier API Project question about repository pattern.
Oh okay then 😅
170 replies
CC#
Created by sepp on 9/11/2023 in #help
✅ .NET Core N-Tier API Project question about repository pattern.
I was too worried about seperation :/
170 replies
CC#
Created by sepp on 9/11/2023 in #help
✅ .NET Core N-Tier API Project question about repository pattern.
If I do that everything will be solved in my mind lol
170 replies
CC#
Created by sepp on 9/11/2023 in #help
✅ .NET Core N-Tier API Project question about repository pattern.
So setting a project reference from API layer to DAL is not a problem right?
170 replies
CC#
Created by sepp on 9/11/2023 in #help
✅ .NET Core N-Tier API Project question about repository pattern.
I got stuck again lol, do I need to register dbcontext and repository in my API layer? It feels like nonsense to me since I think that I shouldn't expose DAL layer to API layer
170 replies
CC#
Created by sepp on 9/11/2023 in #help
✅ .NET Core N-Tier API Project question about repository pattern.
But will consider your advices thank you very much for helping,
170 replies
CC#
Created by sepp on 9/11/2023 in #help
✅ .NET Core N-Tier API Project question about repository pattern.
I am more lost now lol
170 replies
CC#
Created by sepp on 9/11/2023 in #help
✅ .NET Core N-Tier API Project question about repository pattern.
170 replies
CC#
Created by sepp on 9/11/2023 in #help
✅ .NET Core N-Tier API Project question about repository pattern.
So I should create a interface too for repositories
170 replies
CC#
Created by sepp on 9/11/2023 in #help
✅ .NET Core N-Tier API Project question about repository pattern.
I am doing a internship for a small company
170 replies
CC#
Created by sepp on 9/11/2023 in #help
✅ .NET Core N-Tier API Project question about repository pattern.
:/ I have asked to do this in this way that is why
170 replies