Help deciding architecture on a new project
Reddit » .NET
by /u/trenandskinnychicks
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
Visit website
ASP.NET Core Web API Project Architecture
Reddit » .NET
by /u/selftaught_programer
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
Visit website
How to find all uses of string.Contains() in a code base?
Reddit » .NET
by /u/NyanArthur
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
Visit website
URL Parameters and/or data loading in layout files
Reddit » .NET
by /u/Useful-Ad-7495
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
Visit website
An even DEEPER Dive into LINQ with Stephen Toub and Hanselman
Reddit » .NET
by /u/shanselman
3h ago
submitted by /u/shanselman [visit reddit] [comments ..read more
Visit website
CodiumAI or Github Copilot ? Which one
Reddit » .NET
by /u/ava69_open
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
Visit website
Tool for running multiple applications/ solutions simultaneously?
Reddit » .NET
by /u/developer_with_boobs
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
Visit website
I made Catalog Queries as Enums. Is this bad design?
Reddit » .NET
by /u/Touchthegrasse
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
Visit website
Do I need to create a new migration after removing converters from Ef Core in ConfigureConventions ?
Reddit » .NET
by /u/skillmaker
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
Visit website
Task scheduling
Reddit » .NET
by /u/Longjumping_Echo1023
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
Visit website

Follow Reddit » .NET on FeedSpot

Continue with Google
Continue with Apple
OR