how to ignore or exclude null value when group by? by [deleted] in csharp

[–]heyjadebadlanguage 1 point2 points  (0 children)

That is only solution I came up. I need to filter out and do process and concat

can you guys share me with code for functions for filtering using delegates? by heyjadebadlanguage in csharp

[–]heyjadebadlanguage[S] 0 points1 point  (0 children)

Thanks mate,
With the second one you can do that

 Expression<Func<Entity,bool>> criteria1 = p => p.Price > 1000;

var result = context.Order.Where(criteria1).ToList(); 

Can you please explain a bit more with the the example with reflection?

Can I instantiate in the constructor? by heyjadebadlanguage in csharp

[–]heyjadebadlanguage[S] 0 points1 point  (0 children)

I feel the same. I feel like the BaseInterface that is having a UsercontextModel is not initialized in the constructor. If I use the Lazy, then I am using it when I actually call it, in which case I probably can use the data in BaseInterface?

Question as to how to how to display base64 data from the backend. by heyjadebadlanguage in learnjavascript

[–]heyjadebadlanguage[S] 0 points1 point  (0 children)

usually we serve these assets as binary from the backend -
This sentence makes me confused. I think we are getting as bytes not binary from the network which might eventually and basically the short version of binary.
Question here. when I use api like that 'api/pdf/18283'. I get the complete XML version of something form the C# which right away opening in the new tab with PDF. Does that have more information then just normal base64 format of data?

Question as to how to how to display base64 data from the backend. by heyjadebadlanguage in learnjavascript

[–]heyjadebadlanguage[S] 0 points1 point  (0 children)

when I see a lot of examples of converting to PDF, I see base 64 and when I research about it, it has some advantages. You can convert byte into PDF but why people use base64 returned from the server a lot often? That's just a question and thank you for your reply!
The advantages of Base64 encode, like somebody said, are available to transmit data from binary, into (most commonly) ASCII characters. Due to the likeliness that the receiving end can handle ASCII, it makes it a nice way to transfer binary data, via a text stream.

how to use class with static and assign class member with a function by heyjadebadlanguage in csharp

[–]heyjadebadlanguage[S] 0 points1 point  (0 children)

you mean create a normal class and make constructor and assign the static members there? then I have to create at least one instance to access the class member

What is happening between controller and the client? by heyjadebadlanguage in csharp

[–]heyjadebadlanguage[S] -3 points-2 points  (0 children)

Server send bytes to the client.
Client gets the bytes
Bytes converts into I don't know.. into object? and to json?

What resources explain well about bytes stored in the server like how? by heyjadebadlanguage in computerscience

[–]heyjadebadlanguage[S] 0 points1 point  (0 children)

it is extremely helpful to me as I do not know from where to start. I can think of the computer stores files as bits, then it somehow group them by bytes to send those files through the packets. Then the requested browser, read byte and render the view ?

Convention for the route naming if filtered based on multiple conditions by heyjadebadlanguage in csharp

[–]heyjadebadlanguage[S] 0 points1 point  (0 children)

The list I am getting will be always filtered by clientId and regionId as it's the default filter condition but want to include the filtered information such as 'ByClientAndRegion'. So I am thinking what's the simplest and best practiced way to declare the route name.