Dropps
❔ efcore querying
hello there iam right now digging a bit deeper into ef core and how to query data correctly but i dont get my head around something maybe someone can help
i have following data classes:
i have a table for both of these classes now my question is how do i handle following behaviour:
GetAllAsync(Guid? userId)
GetByIdAsync(Guid productId, Guid? userId)
goal is to include the rating the user gove if the userid isnt null if it is then return just the product model but i dont get around how to do it
this is what i tried
44 replies
❔ efcore and repositorys
in what scenarios does it make sense to use repositorys withhin ef core?
i have a api layer project and a application layer project now my question is do i expose the dbcontext to the api project directly or should i introduce a repository pattern? i generally dont think it makes much sense to use repositorys as efcore basically has its own implementation for that with the DbSet<T> classes
what are your suggestions?
71 replies
❔ Icons in WPF
hello there
how do i get my application to use icons?
i created relative pathings to my svg files for the <Window> itself but it says then it could not find it
second issue is how do i get those svgs displayed as images somewhere? saving them as relative paths also doesnt work
2 replies
creating a HostProcess to control other apps
Hello there, iam working on a bigger project needing following sooner or later for both things but iam alrdy curios on how i should proceed when building a application wich is run by a "host" process (responsible for loading in resources and configuring env variables for the referenced projects that need that and to be able to start and close the app) basicly the host process is supposed to run both apps (a dashboard and a launcher) wich are 2 diffrent wpf apps then also be able to create a "playground" for my plugin system wich can also be extending wpf apps meaning window in window apps
whats the best way of achiveing that? i searched around online already but found nothing better than "Process.Start(blah)" but that doesnt give full control over the application
26 replies
AppBuilder class
hello there iam currently trying to think of a solution so i can make myself a AppBuilder without needing to reference all projects directly
basicly i have a Program.cs from a wpf app in Project B but in project A i want to be able to say something like
how could that be done?
34 replies
Right way to use Interfaces in Large Scale Blazor Server Web Applications
Hello there, iam currently working on a <see title> app for something iam not allowed to leak now iam wondering how to use Interfaces correctly? I used them to make Contracts for Models or similar. But today i looked through some Templates we could potentionally use and i often see in the pages with code behind files the term
but iam not at all sure what to use that for or how its supposed to work as Interfaces dont have any kind of function bodys anyone can give a conclusion or so? ive also searched about it in StackExchange and StackOverflow but both times likely 0 results for this exact use case.
Edit: please ping me when you have a solution or similar i doubt i will watch this actively as its pretty a big server i cant read every message
28 replies