randombev
randombev
CC#
Created by randombev on 11/16/2023 in #help
✅ How to create a database for an application on mac?
yup
62 replies
CC#
Created by randombev on 11/16/2023 in #help
✅ How to create a database for an application on mac?
From MySQL Workbench
62 replies
CC#
Created by randombev on 11/16/2023 in #help
✅ How to create a database for an application on mac?
SQL connection
62 replies
CC#
Created by randombev on 11/16/2023 in #help
✅ How to create a database for an application on mac?
its working now :'))
62 replies
CC#
Created by randombev on 11/16/2023 in #help
✅ How to create a database for an application on mac?
thank youuuu for reminding
62 replies
CC#
Created by randombev on 11/16/2023 in #help
✅ How to create a database for an application on mac?
AHHH
62 replies
CC#
Created by randombev on 11/16/2023 in #help
✅ How to create a database for an application on mac?
so it's a a database engine problem?
62 replies
CC#
Created by randombev on 11/16/2023 in #help
✅ How to create a database for an application on mac?
is this the cause of the problem?
62 replies
CC#
Created by randombev on 11/16/2023 in #help
✅ How to create a database for an application on mac?
still the same error
62 replies
CC#
Created by randombev on 11/16/2023 in #help
✅ How to create a database for an application on mac?
No description
62 replies
CC#
Created by randombev on 11/16/2023 in #help
✅ How to create a database for an application on mac?
hmm.. so what should I do? I am stuck here..
62 replies
CC#
Created by randombev on 11/16/2023 in #help
✅ How to create a database for an application on mac?
Will it fix the problem if i switch to Azure Data Studio instead of XAMPP?
62 replies
CC#
Created by randombev on 11/16/2023 in #help
✅ How to create a database for an application on mac?
this is the error after i enter "dotnet ef migrations add Customer"
62 replies
CC#
Created by randombev on 11/16/2023 in #help
✅ How to create a database for an application on mac?
No description
62 replies
CC#
Created by randombev on 11/16/2023 in #help
✅ How to create a database for an application on mac?
using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using ardonagh.Data; var builder = WebApplication.CreateBuilder(args); // Add services to the container. var connectionString = builder.Configuration.GetConnectionString("DefaultConnection") ?? throw new InvalidOperationException("Connection string 'DefaultConnection' not found."); //builder.Services.AddDbContext<ApplicationDbContext>(options => // options.UseSqlite(connectionString)); builder.Services.AddDbContextPool<ApplicationDbContext>(options => options.UseMySql(connectionString, ServerVersion.AutoDetect(connectionString))); builder.Services.AddDatabaseDeveloperPageExceptionFilter(); builder.Services.AddDefaultIdentity<IdentityUser>(options => options.SignIn.RequireConfirmedAccount = true) .AddEntityFrameworkStores<ApplicationDbContext>(); builder.Services.AddControllersWithViews(); var app = builder.Build(); // Configure the HTTP request pipeline. if (app.Environment.IsDevelopment()) { app.UseMigrationsEndPoint(); } else { app.UseExceptionHandler("/Home/Error"); // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. app.UseHsts(); } app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseRouting(); app.UseAuthorization(); app.MapControllerRoute( name: "default", pattern: "{controller=Home}/{action=Index}/{id?}"); app.MapRazorPages(); app.Run();
62 replies
CC#
Created by randombev on 11/16/2023 in #help
✅ How to create a database for an application on mac?
i think I have to be in "(base)" in terminal? not im not sure how
62 replies
CC#
Created by randombev on 11/16/2023 in #help
✅ How to create a database for an application on mac?
but still i got this error "Option 'cache' not supported"
62 replies
CC#
Created by randombev on 11/16/2023 in #help
✅ How to create a database for an application on mac?
tried using chatgpt
62 replies
CC#
Created by randombev on 11/16/2023 in #help
✅ How to create a database for an application on mac?
but I cant follow at 17.40
62 replies
CC#
Created by randombev on 11/16/2023 in #help
✅ How to create a database for an application on mac?
62 replies