Reddit » .NET
1,106 FOLLOWERS
Reddit is a network of communities based on people's interests. A sub-Reddit for discussion and news about Dot Net technology. Check out the posts and share your knowledge and opinions on topics related to .NET. Find out where can you start with .NET as a web developer.
Reddit » .NET
2h ago
Hey, I'll be completely rewriting an existing WinForms app for my company, and I'm just gathering some dev opinions on this matter.
Our existing business model consists of having one "core" app that is then customized through some reflections magic (i.e. adding new menu items, new entities, etc.) according to the business needs of the client. Functionality wise - the core app has pretty much every use case handled in a general way, and the customizations themselves usually handle very specific customer processes and business logic - along with ease of use and QoL features.
This way of doing t ..read more
Reddit » .NET
2h ago
Hello,
I am building an ECommerce application using layered architecture, this application will also serve as the default template for my future personal projects. Is this architecture okay?
Processing img dz2nxxsgynwc1...
submitted by /u/selftaught_programer
[visit reddit] [comments ..read more
Reddit » .NET
2h ago
Long story short, we inherited a codebase from a consultancy which was written in dotnet 6 where they basically used .Contains() very generously even when comparing strings (instead of .Equals(). This led to some previously unknown bugs which we have now fixed. We just searched for Contains() and changed it to Equals() where ever they were using it on strings and not lists.
This led me to ask this question. How do we find a particular method with a specific signature in an entire code base?
Remember we can't search for string.Contains() because it's an extension method on string variable with ..read more
Reddit » .NET
3h ago
Assume I have some pages as such:
/websites/{WebsiteId:int}
/websites/{WebsiteId:int}/faqs
/websites/{WebsiteId:int}/testimonials
/websites/{WebsiteId:int}/services
They all use the same layout for navigation, as such:
@using WebsiteBuilder.Components.Layout @inherits LayoutComponentBase @layout MainLayout <div > <nav> <ul> <li><a href="/websites/@WebsiteId">Details</a></li> <li><a href="/websites/@WebsiteId/faqs">FAQs</a></li> <li><a href="/websites/@WebsiteId/testimonials">Testimonials</a></li> < ..read more
Reddit » .NET
5h ago
Hello everyone. Which ai tools do you use when writing your code? I use CodiumAI because it is free but I have never experienced copilot. If anyone has used and compared these two, is it worth paying for Copilot ? Or do I see the same function with codiumai ?
submitted by /u/ava69_open
[visit reddit] [comments ..read more
Reddit » .NET
6h ago
So I have multiple .NET applications that live in VS solutions (across multiple repositories) that I run simultaneously. Some of these solutions have multiple projects that need to run simultaneously on startup (fine)
I'm looking for a tool that allows me to, for each solution/repository, select the relevant git branch and build/run the apps without having to open all the solutions in visual studio every time. I've messed around with batch files but it's fiddly and I want a nice tool ?? I'm struggling to believe this isn't a problem someone has already tried to solve? I figured I should ask t ..read more
Reddit » .NET
6h ago
https://preview.redd.it/ensdovx9imwc1.png?width=557&format=png&auto=webp&s=a60bf0de899851783bc506126da300e7eb3972f7
https://preview.redd.it/itdev7lfimwc1.png?width=890&format=png&auto=webp&s=43106bc81b1a72267185da9567b5166972fdd56e
https://preview.redd.it/pq958sjhimwc1.png?width=1283&format=png&auto=webp&s=4b4c7f41c7c4f6838e28438babc8ae91e588c260
Edit:
I have 1 and half year of coding&C# experience so if this looks stupid. It is okay.
The main goal about this design was just try a different way. Beacuse all the code examples that i've seen was using th ..read more
Do I need to create a new migration after removing converters from Ef Core in ConfigureConventions ?
Reddit » .NET
7h ago
Hi, I'm working on an existing project and I had to upgrade it to use .NET 8, and since .NET 8 and EF Core 8 now support TimeOnly and DateOnly I had remove these lines from the ConfigureConventions Method ``` configurationBuilder.Properties<DateOnly>() .HaveConversion<DateOnlyConverter>() .HaveColumnType("date");
configurationBuilder.Properties<TimeOnly>() .HaveConversion<TimeOnlyConverter>() .HaveColumnType("time");
```
public sealed class DateOnlyConverter : ValueConverter<DateOnly, DateTime> { public DateOnlyConverter() : base(dateOnly => dateOnly.ToDat ..read more
Reddit » .NET
7h ago
I am designing an application that would send notifications of upcoming lessons for students, based on a given schedule.
First there will be a service that runs every day and extracts all the subjects from a pdf and saves them into database as subjects.
Example:
Title: Math
Day: Monday (will be saved as 1 in db to allow working with DayOfWeek enum)
Time: 13:00
Faculty Group: AA-1
So my database would have a list of such subjects.
Then I would have another background service that every day, say at 6 am makes a query: Give me all subjects with the current DayOfWeek.
For each of them I want to s ..read more