C
C#

help

Mutiple Database

EElio8/26/2022
hi, i want to create 2 different database which one with Materials and the other one with Programs in order to easily extract the database on usb key if i want to save them separately. is there a way to use add migration only on the directory Programs ? i know there is a way to focus ProgramsDbContext but i didnt find anything to specify the directory.
EElio8/26/2022
or should i keep only 1 database and save them separately with another solution ?
UUUnknown User8/26/2022
Message Not Public
Sign In & Join Server To View
EElio8/26/2022
saving the database on usb key because i'm using sqlite so i use a file *.db to store my data
UUUnknown User8/26/2022
2 Messages Not Public
Sign In & Join Server To View
EElio8/26/2022
if the user need to keep a save to avoid any manipulation problem like deleting the wrong programs etc. or simply to reuse the program on another machine
Ggerard8/26/2022
It's possible to target a DbContext with --context (docs: https://docs.microsoft.com/en-us/ef/core/cli/dotnet#common-options) So for example: dotnet ef migrations add MyCoolMigration --context ProgramsDbContext After that you can move the migration to the folder you like, if you add a new migration it'll auto detect the folder where the other migrations are and it'll put it in there.

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
Save values from dict [Answered]Hello guys. I need help... I've been coding an algorithm where I need to store the values of a dictiVScode-equivalent functions in MSVS [Answered]1. VScode has a handy function where you are able to CTRL+CLICK into a function name in a .class filPublish fail [Answered]Im encountering an unknown error when trying to publish code to folder, see screenshot:Example of 'Exception Continuing Up The Stack'? [Answered]Quote from book "Only Handle What You Can Fix: If an exception handler cannot resolve the problem reCannot find governing FrameworkElement or FrameworkContentElement for target elementI'm trying to make something similar to the `UIElement`'s `InputBindings`, but for some reason, I'm When to use services [Answered]This might sounds like a weird question, is it worth using services in a small-ish non-server consolException vs LogicHello, im going to read a file with File.Readlines(). I read that its better to use logic(like a iMAUI - Weird footer and header when changing from NavigationPage to AppShellI want some kind of "Splash screen" that appears for 3 seconds and then redirect to MainPage (which Mapping outgoing enums to a specific shape in Asp.net Core [Answered]Hello! I'm trying to find a way to take **any **outgoing enums in DTOs from an ASP.NET Core API, anget minecraft versions list [Answered]hello! i wanted to make local minecraft server bootstrap, and i need to get versions list, to make uHow to use RedirectToAction(), RedirectToRoute() or Redirect() to specific endpoints on this Action?I'm unsure on how to correct format the redirect as if only specify the action name it will always dValidating an object not received during a request(FluentValidation) [Answered]Hi, I'm trying to achieve this: I receive Id and someRequest model from an endpoint(separate ID becaDependencies of dinamically loaded .dll are not found [Answered]Hi everyone, I've an ASP.NET Core 6 web app where I have a main project "A" that, if certain conditiIs there a way to make int [] and byte [] point to the same memory area? [Answered]1exception subclass for try-catch block [Answered]I want to subclass Exceptions to create a class that can be inserted into a catch() parameter to detLicense Key SystemHey, how would you implement a licensing system? I basically need those 3 things: - Online key valiProject PathHow can I get the Uri path to my project? What I get: `D:\csharp\MyFirstProject\MyFirstProjectUI\bi.NET 7 Rate Limit by IP address instead of PathPretty self explanatory title. ```cs app.UseRateLimiter(new RateLimiterOptions { OnRejeHow to access to the 'Index' Action without write it after slashHello dear friends, I'm working on `Asp.Net Core 6` project with `Areas`, I have a problem with `rouBest resources for learning SQL Server [Answered]I remember finding some really good sites with great documentation and tutorials explaining SQL Serv