8
votes
Accepted
Cargo truck travel management
Name what it is, not how it is implemented in C# -
public class TableItem Trip
private async void UpdateTable() UpdateTrips
No random numbers
@for (var i = 0; i < 7 operatingWeekDays ; i++)
&...
3
votes
Accepted
Blazor web app using .NET 9: SQLDbSettings Code Optimization
I do not suggest your approach as is, for the following reasons :
There are no safe-guards that prevents key uniqueness, key-pair, and also wrong procedure name. (e.g. validate ...
2
votes
Accepted
Passing in method as func and using dynamic to circumvent type checking
Needing to access a distant RDBMS across the WAN
can induce noticeable latencies.
Fast unit tests may need a high fidelity mock of a database.
Let's leave aside the matter of whether "no DB ...
1
vote
Accepted
Finding exceptions and optimisations in weather forecast service
The GetForecastAsync method
Since you always call it with DateTime.Now from FetchData.razor ...
1
vote
Accepted
Allow adding errors and warnings and remove both after a while with seperate timers
Try this collection to hold your messages. It should do exactly what you are looking for - just create couple instances for errors and warnings.
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
c# × 8blazor × 8
.net × 2
css × 2
asp.net-core × 2
performance × 1
html × 1
timer × 1
color × 1