hutoanhill
hutoanhill
CC#
Created by hutoanhill on 1/3/2025 in #help
Trying to get Identity to work
:(
3 replies
CC#
Created by hutoanhill on 1/3/2025 in #help
Trying to get Identity to work
also, i seem to remember theres a way to embed that gist with the bot... but that might be a differant server
3 replies
CC#
Created by hutoanhill on 11/15/2024 in #help
updating a MySQL database from EF Core
a helper at the very least verify the model and the database match before booting would be great. but i need to figure out how to push my changes from my .NET project to the code first.
53 replies
CC#
Created by hutoanhill on 11/15/2024 in #help
updating a MySQL database from EF Core
oh, though you miss spelled idea
53 replies
CC#
Created by hutoanhill on 11/15/2024 in #help
updating a MySQL database from EF Core
still havent solved this error
53 replies
CC#
Created by hutoanhill on 11/15/2024 in #help
updating a MySQL database from EF Core
Visual Studio uses it to. or at least can read it
53 replies
CC#
Created by hutoanhill on 11/15/2024 in #help
updating a MySQL database from EF Core
i also added an implimentation of IDesignTimeDbContextFactory<MyChurchContext>
53 replies
CC#
Created by hutoanhill on 11/15/2024 in #help
updating a MySQL database from EF Core
ok. i added this to my builder and tried to command again with the same error:
builder.Services.AddDbContext<MyChurchContext>(options =>
options.UseMySql("name=MyChurchConnection", ServerVersion.Parse("8.0.35-mysql"))
);
builder.Services.AddDbContext<MyChurchContext>(options =>
options.UseMySql("name=MyChurchConnection", ServerVersion.Parse("8.0.35-mysql"))
);
53 replies
CC#
Created by hutoanhill on 11/15/2024 in #help
updating a MySQL database from EF Core
53 replies
CC#
Created by hutoanhill on 11/15/2024 in #help
updating a MySQL database from EF Core
hm... looks like i might need to create a factory of sorts...
53 replies
CC#
Created by hutoanhill on 11/15/2024 in #help
updating a MySQL database from EF Core
but that threw the error: Unable to create a 'DbContext' of type '<nameOfClass>'. The exception 'Option 'name' not supported.' was thrown while attempting to create an instance.
53 replies
CC#
Created by hutoanhill on 11/15/2024 in #help
updating a MySQL database from EF Core
tried adding the flag --context <nameOfClass>
53 replies
CC#
Created by hutoanhill on 11/15/2024 in #help
updating a MySQL database from EF Core
hm....
53 replies
CC#
Created by hutoanhill on 11/15/2024 in #help
updating a MySQL database from EF Core
ive got multiple data contexts, i assume the name of the context is the name of the class that impliments DbContext?
53 replies
CC#
Created by hutoanhill on 11/15/2024 in #help
updating a MySQL database from EF Core
project refers to a .csproj file, not the .sln file
53 replies
CC#
Created by hutoanhill on 11/15/2024 in #help
updating a MySQL database from EF Core
i was a total idiot.
53 replies
CC#
Created by hutoanhill on 11/15/2024 in #help
updating a MySQL database from EF Core
this command has come up in my reasurech but i get this error when i run it from my project directory:
No project was found. Change the current working directory or use the --project option.
No project was found. Change the current working directory or use the --project option.
53 replies
CC#
Created by hutoanhill on 11/15/2024 in #help
updating a MySQL database from EF Core
no way to pull it from configuration?
53 replies
CC#
Created by hutoanhill on 11/15/2024 in #help
updating a MySQL database from EF Core
am i missunderstanding your explanation?
53 replies
CC#
Created by hutoanhill on 11/15/2024 in #help
updating a MySQL database from EF Core
so i am not asking about how to acess my connection string from within the .NET project. i want to forward engineer a MySQL database based on the the structure defined in my models
53 replies