gwon8266
Solution to remove previous migrations and use a new migration without dropping database.
I built a simple ecommerce platform and I already have seeded users, products uploaded and so on.
But I recently made a change, where I added role based authorization.
When I generated the Migration file for this change, and added it, I was getting an error.
This made me drop the entire database and run the recently generated Migration file and it worked perfectly
Is there a better way for me to do this.
Thank you
2 replies
Can someone help me understand what Rosalyn API is and what is does?
I looked up Rosalyn cause I wanted to contribute to it's open source. But upon reading it's documentation from Microsoft, I was bombarded with so much information that I had to sleep for a few hours. Honestly don't think I am getting anywhere. So I need someone to break it down for me, with easy peasy examples. Thanks in advance.
22 replies
How to search database for matching text efficiently with C# (maybe with tokens)
In python there is something called a tokenizer that convert strings to tokens and we can use search through those tokens to get the text.
(I used it in my last python job).
Is there a c# equivalent?
16 replies
Is using GetAwaiter().GetResult() for async methods in constructor a hack!
So I am writing my datalayer for a database, however I want to use one instance of that database for all the read and write methods in my datalayer class.
In order for me to initialize the database, I need to use the "await" keyword because it's an async function.
I planned to initialize the database at the constructor of my base datalayer class.
but I can't use "await" in the constructor.
So I decided to use GetAwaiter().GetResult().
It works, but I don't see this often. So I don't think it's appropriate.
What do you think?
16 replies
Can I call myself a software engineer, without knowing the miniscule details of how .NET works?
I recently came across a blog post on dev.to saying that framework users are not Engineers, and we should be called "Frameworkers".
I am personally more interested in the business logic, rather than minuscule/,lower level details.
If there are imported packages and I know the input, and output. I can easily use it for what I want.
So, should I involve myself in the internals, or is it okay to just use the abstractions and adapt to it?
10 replies
What open-sourced component library is widely used in Blazor development
I have learned the basics of Blazor, so now I think I need to use a component library that is widely used, to build simple projects and also know to work with pre-built components.
7 replies
I am trying to create List that can perform an action whenever I make a change to it.
I recently started learning how to use Blazor and I saw how reactive it was on the webpage.
So I decided to write my collection in a way that it emits an event and updates parts the page whenever I make a change to it. I started with List<T> before going on to ObservableCollection<T> . But with the ObservableCollection I can only emit events when I add or remove items. I want to be able to emit events when elements of the collection have been changed
10 replies
I know Angular well enough to build apps with it. Do you think I should still learn Blazor?
When I started learning .NET, I realised that a lot of jobs required you to have both Angular and .NET core experience. However it doesnt make sense to use two languages when one language can do both. Do you think I should stick to using Angular or should I switch to Blazor because it built for the .NET ecosystem
13 replies
Mediator Handlers, Requests and Responses.
So I wrote my mediators using this file structure
.
https://github.com/doks-coders/TaskManager/tree/main/TaskManager.ApplicationCore/Mediators
I want to know if it was written properly. Name conventions and all that. This is just a simple application. But I am experimenting.
1 replies
Minimum Required Knowledge before I am job ready.
Hello guys, I want to know this info from someone that has work experience. What is minimum required knowledge to have before applying for Junior .NET roles. I am currently learning .NET MVC, with Bhrugen Patel on Udemy. I will be done soon and I want to know if I need to learn more things before I can be job ready.
6 replies