Vyrania
Vyrania
CC#
Created by Vyrania on 3/1/2023 in #help
❔ Database with SQL (coming from a Rails background)
So for those that don't know Rails, we generate our model like this rails g model product name:string (just one attribute for the example) Then in the console we go rails db:migrate once the database is migrated, we enter the Rails console and start populating it. Here's an example. Product.create(name: "Sweater") Lo and behold. That just created a new product called "Sweater" and it's now in the database. My question is can you do the same thing in the console with C# and ASP.NET?
15 replies
CC#
Created by Vyrania on 2/27/2023 in #help
❔ Delegates and events
I'm trying to understand what these are, but I'm struggling a lot. I remember working with events when I was making a discord bot, but that was with discord ruby and discord py. Can someone help me understand this better? A simple analogy would be great since that's how I understand things best ><
14 replies