cumslvt13
cumslvt13
CC#
Created by cumslvt13 on 3/26/2024 in #help
Background upload of an IFormFile to Azure blob storage
I'm not starting from scratch, more like a refactoring existing service with improvements of design flaws. One point that customer wants to improve is overall speed and responsiveness of the app
18 replies
CC#
Created by cumslvt13 on 3/26/2024 in #help
Background upload of an IFormFile to Azure blob storage
I don't really think that 2-3 files up to in sum 3mb should take 5 seconds. But thanks for the hint with transfer options, I'll look into that
18 replies
CC#
Created by cumslvt13 on 3/26/2024 in #help
Background upload of an IFormFile to Azure blob storage
Application is sort of OneDrive, so there's need to notify other people that are viewing the same page that something changed
18 replies
CC#
Created by cumslvt13 on 3/26/2024 in #help
Background upload of an IFormFile to Azure blob storage
The problem is with UI part that needs to wait for the end of the response. What I'd really like to achieve is to quickly return response with generated id's for UI to update optimistically and later notify the UI via signalR
18 replies
CC#
Created by cumslvt13 on 11/7/2023 in #help
✅ What's the point of ModelSnapshot in ef core migrations
There was a command or something
37 replies
CC#
Created by cumslvt13 on 11/7/2023 in #help
✅ What's the point of ModelSnapshot in ef core migrations
Remind me, how to properly resolve the question here
37 replies
CC#
Created by cumslvt13 on 11/7/2023 in #help
✅ What's the point of ModelSnapshot in ef core migrations
Thanks again for the explanation
37 replies
CC#
Created by cumslvt13 on 11/7/2023 in #help
✅ What's the point of ModelSnapshot in ef core migrations
Guess my question is answered
37 replies
CC#
Created by cumslvt13 on 11/7/2023 in #help
✅ What's the point of ModelSnapshot in ef core migrations
Understood
37 replies
CC#
Created by cumslvt13 on 11/7/2023 in #help
✅ What's the point of ModelSnapshot in ef core migrations
and those are actually generated from models + OnModelCreating
37 replies
CC#
Created by cumslvt13 on 11/7/2023 in #help
✅ What's the point of ModelSnapshot in ef core migrations
But now I understand that it's purely for migrations
37 replies
CC#
Created by cumslvt13 on 11/7/2023 in #help
✅ What's the point of ModelSnapshot in ef core migrations
I was confused because actually BuidModel can contain the same configurations as OnModelCreating can
37 replies
CC#
Created by cumslvt13 on 11/7/2023 in #help
✅ What's the point of ModelSnapshot in ef core migrations
yeah, I've omitted it
37 replies
CC#
Created by cumslvt13 on 11/7/2023 in #help
✅ What's the point of ModelSnapshot in ef core migrations
[DbContext(typeof(AppDbContext))]
partial class AppContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
// omitted
}
}
[DbContext(typeof(AppDbContext))]
partial class AppContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
// omitted
}
}
37 replies
CC#
Created by cumslvt13 on 11/7/2023 in #help
✅ What's the point of ModelSnapshot in ef core migrations
Got it, thanks. Got confused because both BuildModel and OnModelCreating are accepting ModelBuilder
37 replies
CC#
Created by cumslvt13 on 11/7/2023 in #help
✅ What's the point of ModelSnapshot in ef core migrations
No, migrations are being run in that separate project with migrations in CI
37 replies
CC#
Created by cumslvt13 on 11/7/2023 in #help
✅ What's the point of ModelSnapshot in ef core migrations
so the modebuilder configuration is not actually used during runtime? Because this kinda confused me, because I can write the same configuration (for example for replationships) if I override it
37 replies
CC#
Created by cumslvt13 on 11/7/2023 in #help
✅ What's the point of ModelSnapshot in ef core migrations
I mean that I still can query database altough project where dbcontext is doesn't reference project with migrations, which contains AppContextModelSnapshot which has modelbuilder setup
37 replies
CC#
Created by Kiel on 10/22/2023 in #help
❔ Automatic discovery of scoped services without a marker interface
Well technically you could use something like naming convention to register service. Like wolverine is doing for command handlers https://wolverine.netlify.app/tutorials/getting-started.html#snippet-sample_quickstart_issuecreatedhandler
8 replies
CC#
Created by cumslvt13 on 10/5/2023 in #help
❔ Loading/Using blazor in a webworker
Anyone?
3 replies