Upgraded ServiceStack.OrmLite.SqlServer. Getting an error about System.Text.Encoding.CodePages now

I inherited a project that was written in .NetCore 2.0 initially. The version of ServiceStack.OrmLite.SqlServer.Core that we were using was 1.0.43. I upgraded everything in NuGet, so ServiceStack is...

28 Feb at 16:40

ASP.NET Core JSON-RPC

I've created core WebAPI project and while RESTing performs quite good, there's also a need in JSON-RPC functionality. I saw things like [this](https://github.com/alexanderkozlenko/aspnetcore-json-rp...

Servicestack - possibility of mapping several POCO to one table

I'm looking for a way to map several POCO objects into single table in the ServiceStack. Is it possible to do this in a clean way, without "hacking" table creation process?

27 Feb at 21:29

Unable to retrieve project metadata. Ensure it's an MSBuild-based .NET Core project. (Migrations)

I have a project with this structure [](https://i.stack.imgur.com/X6tSl.png) TooSeeWeb.Infrastructure is for migrations. When I try to run migrations with this command ``` dotnet ef migrations add ...

How to stop/exit/terminate dotnet core HostBuilder console application programmatically?

I'm trying to create a dotnet core console app. The app is a simply utility app and should start, do its thing and exit. It's easy to achieve using standard console application template generated by V...

16 Mar at 16:11

How can I use servicestack product so I can connect my Flutter or Dart to soap WSDL services?

I am trying to get my Flutter app to connect securely to soap/wsdl web services. My question is how can I use servicestack product so I can connect my Flutter Mobile App or Dart console App to consu...

5 Mar at 06:29

Why wasn't TEventArgs made contravariant in the standard event pattern in the .NET ecosystem?

When learning more about the standard event model in .NET, I found that before introducing generics in C#, the method that will handle an event is represented by this delegate type: ``` // // Summary...

27 Feb at 21:26

how to set the environment of dotnet core in docker?

I want to be able to run dotnet core by docker in different environments(for now just development and production) but my docker always start in production environment. here is my docker file: ``` FRO...

27 Feb at 09:3

Enumerate or map through a list with index and value in Dart

In dart there any equivalent to the common: ``` enumerate(List) -> Iterator((index, value) => f) or List.enumerate() -> Iterator((index, value) => f) or List.map() -> Iterator((index, value) => f) ...

24 Sep at 06:32

Reset to Initial State with React Hooks

I'm currently working on a signup form and the following is a snippet of my code: ``` const Signup = () => { const [username, setUsername] = useState('') const [email, setEmail] = useState(''...

26 Feb at 23:39

Complex (deeply nested) request validation in ServiceStack, using Fluent Validation

I'm coming up short, trying to use Fluent Validation in the ServiceStack DTOs, when the model have properties nested several levels. Ex.: The model is structured like this A => B => C => D ...

26 Feb at 20:59

Flutter how to handle image with fixed size inside box?

I am new to Flutter and I like it but I am not comfortable building layouts. I am working on an app that contains a ListView of Cards. Each card is inside a Container and contains an image (with fixe...

16 Sep at 14:52

How can I solve the error 'TS2532: Object is possibly 'undefined'?

I'm trying to rebuild a web app example that uses Firebase Cloud Functions and Firestore. When deploying a function I get the following error: ``` src/index.ts:45:18 - error TS2532: Object is possib...

Error: table has not been registered, in DynamoDB

Getting error as the table has not been registered while using pocodynamo for my local dynamodb. I'm trying to have crud operation but while inserting data to the local dynamodb table, I'm getting an ...

Removing whitespace between consecutive numbers

I have a string, from which I want to remove the whitespaces : ``` string test = "Some Words 1 2 3 4"; string result = Regex.Replace(test, @"(\d)\s(\d)", @"$1$2"); ``` the expected/desired result w...

26 Feb at 14:16

Getting empty response on ASP.NET Core middleware on exception

I am trying to create a middleware that can log the response body as well as manage exception globally and I was succeeded about that. My problem is that the custom message that I put on exception it'...

4 Jun at 02:54

Dependency Injection in .NET Core 3.0 for WPF

I’m quite familiar with ASP.NET Core and the support for dependency injection out of the box. Controllers can require dependencies by adding a parameter in their constructor. How can dependencies be...

20 Jan at 22:37

Equality and polymorphism

With two immutable classes Base and Derived (which derives from Base) I want to define Equality so that - equality is always polymorphic - that is `((Base)derived1).Equals((Base)derived2)` will call ...

2 Mar at 01:49

How can I use the new DI to inject an ILogger into an Azure Function using IWebJobsStartup?

I am using `Azure Function` v2. Here is my function that uses the constructor injection: ``` public sealed class FindAccountFunction { private readonly IAccountWorkflow m_accountWorkflow; pr...

How to get nested element using ServiceStack?

Although I am able to access the SchemaVersion using code below, I cannot access FormatDocID nested element. Any ideas how can I easily get FormatDocID using ServiceStack and AutoQueryFeature (or sim...

Why is typeA == typeB slower than typeA == typeof(TypeB)?

I've been optimising/benchmarking some code recently and came across this method: ``` public void SomeMethod(Type messageType) { if (messageType == typeof(BroadcastMessage)) { // ... ...

26 Feb at 14:18

React.useState does not reload state from props

I'm expecting state to reload on props change, but this does not work and `user` variable is not updated on next `useState` call, what is wrong? ``` function Avatar(props) { const [user, setUser] =...

14 Nov at 02:31

Global exception handling in Xamarin.Forms

Is there a way to handle exceptions at a global level in a Xamarin.Forms app? Currently my app has a login page which has a button "Throw Exception" button bound to the "Exception_Clicked" method. `...

25 Feb at 12:11

ServiceStack ORMLite JoinAlias on a Where clause

I'm trying to add a Where clause to a table joined with a JoinAlias, but there doesn't appear to be a way to specify the JoinAlias on the where clause. I'm trying to join to the same table multiple t...

OrderBy in Include child using EF Core

In my .NET Core / EF Core application I have a model with a nested list of child objects. When I retrieve an instance, I need the nested list to be ordered by one of the child's properties. What is t...

1 Mar at 02:16