OrmLite doesn't apply soft delete filter on joins
I've added a `SqlExpressionSelectFilter` to use the [soft delete](https://github.com/ServiceStack/ServiceStack.OrmLite#soft-deletes) functionality in ServiceStack OrmLite. However, It only seems to ap...
- Modified
- 5 Sep at 17:21
C# access unmanaged array using Memory<T> or ArraySegment<T>?
With the introduction of `Memory`, `Span` and `ArraySegment` in C# 7.2, I was wondering if I could represent an unmanaged array as an enumerable object, that lives on the heap. This latter requiremen...
- Modified
- 5 Sep at 17:18
How to test if a user has a role within a service implementation in ServiceStack
I know I can add the RequiresAnyRole or RequiresRole attribute on my service: ``` [RequiresAnyRole("Admin", "HeadChaperone")] public GuestChaperoneResponse Delete(DeleteGuestChaperone request) ...
- Modified
- 5 Sep at 16:7
How to get intellisense in Visual Studio Code for Unity functions names?
I am following a tutorial about Unity and I see that the instructor has intellisense when writes the method's name. However I have only intellisense with classes and variables, I mean Unity classes l...
- Modified
- 5 Sep at 16:10
Unable to resolve service for type 'System.Net.Http.HttpClient'
I created a `ViewComponent` class which call a `REST API` using the `HttpClient`, this is the code: ``` public class ProductsViewComponent : ViewComponent { private readonly HttpClient _client; ...
- Modified
- 5 Sep at 14:50
In ASP.NET Core read JWT token from Cookie instead of Headers
I am porting an `ASP.NET Web API 4.6 OWIN` application to `ASP.NET Core 2.1`. The application is working based on `JWT` token. But the token in passed via cookie instead of header. I'm not sure why he...
- Modified
- 5 Sep at 13:9
How to set default value in material-UI select box in react?
I am using [Select box](https://material-ui.com/demos/selects/) from material-ui I want to show "select the value" option by default selected but after that user is not able to select this option. ...
- Modified
- 22 Feb at 03:6
Unable to consume WCF WSHttpBinding in .net core
I'am trying to move my project from .net to .net core. I was initially using WCF WSHttpBinding service in .net but I'am unable to consume the same in .net core. I tried using BasicHttpBinding to conne...
- Modified
- 6 May at 20:37
How to extend DbContext with partial class and partial OnModelCreating method in EntityFramework Core
I'm using EF Core and DatabaseFirst approach. My dbContext is created automatically by `Scaffold-DbContext` command. I need to add some new DbSets into a dbContext and add into `OnModelCreating` metho...
- Modified
- 25 Sep at 18:3
Do I need to call SaveChanges when using EFCore.BulkExtensions
I started using EFCore.BulkExtensions for ef bulk operations, and it is working very nice. (see https://github.com/borisdj/EFCore.BulkExtensions/) do I need to call also to SaveChanges: or this is goo...
- Modified
- 17 Jul at 08:28
High-performance TCP Socket programming in .NET C#
I know this topic is already asked sometimes, and I have read almost all threads and comments, but I'm still not finding the answer to my problem. I'm working on a high-performance network library tha...
- Modified
- 11 Apr at 05:20
Fluent Validation chain rule not working with multiple When conditions
I got a really interesting behavior. I have the two test cases below: On my validator, if I have the following, the first test fails and the second passes. If I change the order of the rules, the firs...
- Modified
- 6 May at 20:38
Funq: Register the same object multiple times and using an identifier (from session) to resolve them
I have a simple dictionary of type `string, DbContext` I am registering my Dictionary like this ``` container.Register<IDictionary<string, DbContext>>(x => dbContexts).ReusedWithin(ReuseScope.Reque...
- Modified
- 4 Sep at 14:39
Identity Server 4 : Sorry, there was an error : unauthorized_client
I have set up identity server 4 to extent Umbraco so it uses a custom role provider. Everything was working but now when I get redirected to my Identity server I get this error: [](https://i.stack....
- Modified
- 4 Sep at 16:59
What changed in System.ValueTuple 4.4.0 -> 4.5.0?
I consider updating my `System.ValueTuple` references from 4.4.0 to (current) 4.5.0. To avoid regressions, I'd like to find out what changed between those two releases. The [nuget page](https://www.n...
- Modified
- 4 Sep at 13:8
DeprecationWarning: Buffer() is deprecated due to security and usability issues when I move my script to another server
Getting error when script move to other server. > (node:15707) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocU...
C# Getting the IP Address of the client which the UDP server socket received data from
I have a very strange problem. I'm not able to find the IP Address of the client which my server receives data from. Below is my UDP Listener class. The does not contain the IP. The which I referen...
- Modified
- 13 Sep at 09:59
Detect differences between two strings
I have 2 strings ``` string a = "foo bar"; string b = "bar foo"; ``` and I want to detect the changes from `a` to `b`. `a``b` I think there must be a iteration over each character and detect if i...
Consumer "received" event not firing
I'm trying to set up a subscription to a RabbitMQ queue and pass it a custom event handler. So I have a class called `RabbitMQClient` which contains the following method: I'm using dependency injectio...
C# Regex.Split is working differently than JavaScript
I'm trying to convert [this long JS regex](https://github.com/trkbt10/mikan.js/blob/d69f3270d4eb9c6e1363865602cd9fd27bab061b/src/mikan.js#L16) to C#. The **JS code** below gives 29 items in an array s...
- Modified
- 6 May at 20:39
EF Core and Multiple Databases
I have a legacy system with three databases 1. Vendor 2. CustomCode 3. LogData Vendor contains control and log data from our Vendors app. CustomCode contains lots of views and stored procedures ...
- Modified
- 29 Jan at 12:34
F# analog of dependency injection for a real project
The question is based on a great F# / DI related post: [https://fsharpforfunandprofit.com/posts/dependency-injection-1/](https://fsharpforfunandprofit.com/posts/dependency-injection-1/) I tried to po...
- Modified
- 3 Sep at 22:23
How exactly does Microsoft.Extensions.Configuration dependent on ASP.NET Core?
Does ASP.NET Core implement `IConfiguration` access to config values? Most likely my question arose because I don't understand what exactly ASP.NET Core is. Well, I know it's a web framework, Not sur...
- Modified
- 30 Jan at 09:28
Angular 6 Downloading file from rest api
I have my REST API where I put my pdf file, now I want my angular app to download it on click via my web browser but I got HttpErrorResponse "Unexpected token % in JSON at position 0" "SyntaxError:...
- Modified
- 3 Sep at 18:44