Try to keep discussions on topic. Any job posting = ban. Spam/ads = deleted. Spam again = ban. Piracy, porn, gore = guess what? Ban. English only. No begging! No job posting allowed.
Now that I write it out, I see the flaw😂. Too many responsibilities for a class whose intended job is just to return stuff
Читать полностью…IQueryable
is in Linq.Expression
to ble clear:The IQueryable<T> interface is intended for implementation by query providers.
and you don't need that in an ApiResponse, i think
an ApiResponse returns a simple object, so for example an array, an IList, something like that
The missing ';' was an oversight. IQueryable is used by the ApiResponse class. First to return the count of all records, and second, to return the data itself.
Читать полностью…there is ToQueryable(), but i guess point is why return IQueryable
also why the missing ;
And then in the controller, there's logic to cache the data before it is sent to the poco 'ApiResponse' class. Problem is, after setting the blogs variable and saving it in cache, I cannot use it in the return statement since it's no longer 'Queryable'
Читать полностью…How to add the image into database and display without using entity framework in MVC application
Читать полностью…D i didn't forget about you, the tip i'm leaving you is in the back of my head always. i'm going to tip you in my next income which will be in the coming days
Читать полностью…basically, i'm trying to start 2 instances of the same app but with different credentials and a different copy of a .dll
Читать полностью…anyone worked with sandboxie before? i'm trying to start a program and set its working directory. i'll explain, i have modified a module and when i start the program it doesn't affect the sandboxed instance, but if i run it directly from the folder it works
Читать полностью…Maybe I was too focused on using DRY😅. I wanted to do all caching in one place, so that I don't have to write code for cache in every other controller. in that way the code for returning a response from a controller will be a one-liner. Then all the logic will be handled in ApiResponse. caching, pagination, etc.
Читать полностью…in my knowledge, better implement a separate cache on the paginated outresults
Читать полностью…I have a problem trying to implement caching with pagination.
...So this is the nature of my problem.
I have a generic POCO class that returns an object based on the controller it's called from.
This, I 100% agree!
Two companies ago we had this, whole team accountability instead of single persons, measuring the quality of what we did ad a team (stories/complexity and ratio of new work vs bugfix) and that literally made us the best team in the company
Not so much for the last one where individual contributions and feature delivery speed were all that mattered with zero fucks given about quality by "upper management"
I came across this thread. Suddenly the ppl that I feel into my mind is Fabio,Wizou and Bose while I read article since they are one of some good ppl who spend their period to care for others.
https://dannorth.net/2023/09/02/the-worst-programmer/
In YouTube rahul nath channel you will find all. Net demo with aws
Читать полностью…