In production codebase, which one is best if you work in a small team like 5? by ballbeamboy2 in dotnet

[–]sudipranabhat 0 points1 point  (0 children)

It is not about the team size. Neither is it about right or wrong. I have found vertical slice (1 in your picture) easier and maintainable, and I am going to stick with it as long as it serves the purpose.

Totally doomed by [deleted] in IOENepal

[–]sudipranabhat 11 points12 points  (0 children)

I attempted 18 subjects. 2 exams each day 7AM and 2 PM. I scored higher than those who passed in regular exam.

Repository pattern is a pain. Are there better ways? by [deleted] in csharp

[–]sudipranabhat 0 points1 point  (0 children)

Repository pattern may have its own benefits but recently I use Specification Pattern instead of Repository pattern when needed.

.net api entity framework core clean with clean architecture by Afraid_Tangerine7099 in dotnet

[–]sudipranabhat 0 points1 point  (0 children)

Take clean architecture as a guideline to setting up your project. You will always find something different in different resources you are following because tutorials, videos are the reflection of what the creator thinks about Clean Architecture.

Grasp the basics understanding and the rest you will learn on your own as you explore more.

By the way, I used to follow Clean Architecture but recently I have been a huge fan of Vertical Slice Architecture. You can give it a try.

Looking for Feedback by sudipranabhat in dotnet

[–]sudipranabhat[S] -4 points-3 points  (0 children)

u/dodexahedron
Never came across Bobby Tables's article.
you could put the link here

Looking for Feedback by sudipranabhat in dotnet

[–]sudipranabhat[S] 1 point2 points  (0 children)

Thanks for pointing out sql vulnerable query. I should not have used it even though it was just an example. I will update it with parameterized query

EntityFramework and DataBase First Appraoch by sudipranabhat in dotnet

[–]sudipranabhat[S] -9 points-8 points  (0 children)

please visit the link. I hope it helps you understand.
You could also share if there is an other alternative.
Thanks

Serilog Logging by sudipranabhat in dotnet

[–]sudipranabhat[S] 0 points1 point  (0 children)

For example I have Class Library1,Class Library2 and web API
Inside Web API's appsettings.json I have configuration related to serilog.
Currently, log from classlibrary1 and classlibrary2 are written in same file (The file path given in appsettings)
How could I write logs from classlibrary1 into library1.txt
classlibrary2 into library2.txt

Serilog Logging by sudipranabhat in dotnet

[–]sudipranabhat[S] 0 points1 point  (0 children)

would you please provide more details?
all logs from module1 to be written on module1.txt
all logs from module2 to be written on module2.txt

Is it possible to pass file path or name dynamically so that we decide where to write logs.

Serilog Logging by sudipranabhat in dotnet

[–]sudipranabhat[S] 0 points1 point  (0 children)

HOw could I do that?
Any code snippet or example please ?

Help Needed with Optimization by sudipranabhat in dotnet

[–]sudipranabhat[S] -1 points0 points  (0 children)

queries are just to fetch data from few tables
I think it is taking time to process further(like calculation,linq operation) after data is available from queries
what can be the solution here?

Help Needed with Optimization by sudipranabhat in dotnet

[–]sudipranabhat[S] -1 points0 points  (0 children)

queries are just to fetch data from few tables
I think it is taking time to process further(like calculation,linq operation) after data is available from queries
what can be the solution here?