Quantcast
Channel: User Pure.Krome - Stack Overflow
Browsing all 46 articles
Browse latest View live

Comment by Pure.Krome on Entity Framework Core is failing to retrieve data...

Thank you kindly for your kind reply. I really love this part of your answer: "but that typically isn't ideal since it can enlarge the data footprint size coming back". People just don't think or care...

View Article



Comment by Pure.Krome on Adding extra metadata to a Microsoft "ILogger"...

but that scope will contain the elapsed time for any code after it, also? I just wanted it for that SINGLE log entry. So this means I would need to create 4 lines of code for each log entry that will...

View Article

Comment by Pure.Krome on Adding extra metadata to a Microsoft "ILogger"...

Yep - I've known of that blog post for ages - i's a great post! I was hoping to avoid doing a single scope per log message. Was praying there might be some other trick.

View Article

Comment by Pure.Krome on ASP.NET Core minimal API's and parameter binding ->...

and this should work when Query is a record ? also, Query is a "flat" record .. meaning all simple Types. no custom/complex classes as the properties.

View Article

Comment by Pure.Krome on Does Entity Framework allow you to have filtered...

I thought of that and was wondering then if the .Include would always have to download -all- the orders .. when i'm only after the most recent order. (there could be a lot of orders ... and there's...

View Article


Comment by Pure.Krome on Does Entity Framework allow you to have filtered...

Sorry buddy - i think you misunderstand. What you showed me was how I would just retrieve the data from the db. That's fine, but not what I was trying to ask. I was asking how I can have a PROPERTY on...

View Article

Comment by Pure.Krome on Angular DatePicker is always including GMT when we...

🥰 Sincerely appreciate the information and helping me out! We'll both see if it helps.

View Article

Comment by Pure.Krome on C# IOptions Pattern for Azure Functions in an...

Not sure if this helps or not -> I've started using Primary Constructors and they have been fine ... until I tried using them with Azure Functions. Suddenly -> I'm getting the exact same...

View Article


Comment by Pure.Krome on Azure Queue body is too large and exceeds the...

WAIT WHAT?! Max size is 48KB when using Base64 encoding? Why have I never seen that documented anywhere? Wow - awesome info dude. Solved my problem!

View Article


Comment by Pure.Krome on ASP.NET Core 8 TypedResults.File with ETag always...

thank you @joserairez for the answer! Can you source this answer? Or explain with a bit more detail why this is the case? Without the Cache-Control:no-control .. why is the ETag not getting passed...

View Article

Image may be NSFW.
Clik here to view.

Answer by Pure.Krome for Twitter and Oauth results in 401 error

You get a 401 (Not Authorised) error when you do not provide the correct ConsumerKey and ConsumerSecret values.Looking at the code above, you are passing empty string values for those two variables....

View Article

Image may be NSFW.
Clik here to view.

Answer by Pure.Krome for Syntax of SQL Server database connection string in c#

The code you're using to connect to your SQL database is really old school. We just don't do it like that any more.So - what can we do instead? Let's use a nice library called Dapper which makes...

View Article

How to create a new Kubernetes cluster on Docker Desktop?

I can't seem to figure out how to create a totally new Kubernetes cluster on a Docker Desktop running instance on my computer. (It shouldn't matter if this was a Mac or PC).I know how to -set- the...

View Article


Does an Azure.Authentication.ApplicationTokenProvider have an expiry for a...

The following code retrieves a ServiceClientCredentials instance against an Azure account/subscription:var credentials = await ApplicationTokenProvider.LoginSilentAsync(_tenantId, _clientId,...

View Article

Does Entity Framework Core always seed data in migration scripts if...

I wish to seed data manually if the environment is 'development' or the database doesn't exist in the database.Using Entity Framework Core (v 7.x) I have a sample class like this:internal class...

View Article


Image may be NSFW.
Clik here to view.

How to confirm which environment.ts file an Angular app ends up using?

I'm trying to understand how I can confirm which environment.ts (or environment.<env>.ts) file an Angular app is using.In -my- scenario, I'm building the app in a Docker image and then running...

View Article

Image may be NSFW.
Clik here to view.

Unsure why my JavaScript FETCH call is failing, when the server returns...

I have an SPA client application that is doing a REST call to my localhost webserver. I'm using JavaScript to do the call and use fetch() to do this.My response is an HttpStatus 200 (I can step through...

View Article


How can I Add or Update a ConcurrentDictionary, during a Parallel.ForEach?

I have a list of files, where each file contains a list of Foo data. Now, the same piece of Foo data (eg. Id = 1) might exist in multiple files, but the more recent piece of data would overwrite an...

View Article

Answer by Pure.Krome for Which JavaScript minifier (cruncher) does the same...

There's also a .NET port of YUI Compressor which allows you to:integrate the minification/file combining into Visual Studio post-build eventsintegrate into a TFS Build (including CI)if you wish to just...

View Article

Answer by Pure.Krome for Quartz.NET implementation doesn't jive with tutorials

The documentation is aimed at the 1.0 API. Things have now changed, and yes, they are breaking changes.Check this official migration page out. You might find some solutions in there.

View Article
Browsing all 46 articles
Browse latest View live




Latest Images