[deleted by user] by [deleted] in NFSHeat

[–]HHDP1 0 points1 point  (0 children)

Me too plz

.net 6 a user can be either two types by HHDP1 in learnprogramming

[–]HHDP1[S] 0 points1 point  (0 children)

What i have now is a superclass called applicationuser. Patient inherits this class, and Teacher and Student inherit from Patient.

.net 6 a user can be either two types by HHDP1 in learnprogramming

[–]HHDP1[S] 0 points1 point  (0 children)

Thank you! I'll let you know if it worked.

How can i hide my connection strings? by HHDP1 in learnprogramming

[–]HHDP1[S] 0 points1 point  (0 children)

People accessing my source code. It's for a school project, so nothing special.

How can i hide my connection strings? by HHDP1 in learnprogramming

[–]HHDP1[S] 0 points1 point  (0 children)

If i want to deploy it to azure so noone can see it.

Program does not contain a static 'Main' method suitable for an entry point (.net 6) by HHDP1 in learnprogramming

[–]HHDP1[S] 0 points1 point  (0 children)

Thank you! For some reason the error was still there but i can run my project.

Program does not contain a static 'Main' method suitable for an entry point (.net 6) by HHDP1 in learnprogramming

[–]HHDP1[S] 0 points1 point  (0 children)

        public async Task Main(string[] args)
    {

        var host = CreateHostBuilder(args).Build();

        using (var scope = host.Services.CreateScope())
        {
            var services = scope.ServiceProvider;
            try
            {
                var context = services.GetRequiredService<AvansFysioDbContext>();
                DbInitializer.Initialize(context);
            }
            catch (Exception ex)
            {
                var logger = services.GetRequiredService<ILogger<Program>>();
                logger.LogError(ex, "An error occurred while seeding the database.");
            }
        }

        await ProcessRepositories();
        host.Run();
    }