Oops
Oops
CC#
Created by αnimα on 1/31/2023 in #help
❔ .NET VS .NET SDK
Yeah, so in summary, a developer's workstation would just need to install the SDK, while your docker container or web server would need to have the runtime installed
7 replies
CC#
Created by αnimα on 1/31/2023 in #help
❔ .NET VS .NET SDK
This is maybe a poor analogy, but if you consider old-school console gaming, the program would be a game, and the runtime would be your PS2. You can run a game on your Playstation, but to actually create a PS2 game, gaming studios needed special hardware (development kits) from Sony. Similarly, in order to run compiled C# software, you only need the runtime, but to create programs, you need a compiler, analyzers, and other tooling. In the case of .NET and most (every?) framework/langauge, the SDK includes the runtime as well as these additional features.
7 replies
CC#
Created by stayclaxxy on 1/26/2023 in #help
❔ EFCore in .net 6 Web API - using same context/model for multiple environments simultaniously.
Did you figure out an answer to this? You should be able to use the same classes and just change your connection string per environment in your Startup/Program.cs when registering the dbcontext
4 replies
CC#
Created by strawhatgoofy on 1/31/2023 in #help
Asp.net MVC adding new controller issue
Awesome! Out of curiosity when you said Entity Framework did you mean Entity Framework Core? I'd recommend that over EF6 personally
7 replies
CC#
Created by strawhatgoofy on 1/31/2023 in #help
Asp.net MVC adding new controller issue
Oh, what's the error you get when you let it create GoalsWebAppContext? I've been on Mac/VSCode for a couple years now so I can't remember a lot of the Visual Studio gui behavior.
7 replies
CC#
Created by koidestroyer on 1/29/2023 in #help
❔ Testing: Is there a library that can automatically populate all properties in an object?
You should be able to use AutoFixture for this.
9 replies
CC#
Created by strawhatgoofy on 1/31/2023 in #help
Asp.net MVC adding new controller issue
Can you provide some more detailed info here? "It wants me to add a data context type" is pretty vague. Are you currently trying to access a db from your code, or did you copy some code that contains references to an ApplicationDbContext?
7 replies