TJFrags
TJFrags
CC#
Created by TJFrags on 4/4/2023 in #help
❔ Update-Database causing error
Alright I got it, THanks
25 replies
CC#
Created by TJFrags on 4/4/2023 in #help
❔ Update-Database causing error
Is there anything else I can do to get these columns in the database?
25 replies
CC#
Created by TJFrags on 4/4/2023 in #help
❔ Update-Database causing error
Although this doesnt happen when I remove the DateOfBirth and FullName from the
INSERT INTO AspNetUsers
INSERT INTO AspNetUsers
method
25 replies
CC#
Created by TJFrags on 4/4/2023 in #help
❔ Update-Database causing error
Oh I got it
25 replies
CC#
Created by TJFrags on 4/4/2023 in #help
❔ Update-Database causing error
thats the ApplicationDbContext file
25 replies
CC#
Created by TJFrags on 4/4/2023 in #help
❔ Update-Database causing error
using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations; using GamersRising.Entities; using Microsoft.AspNetCore.Mvc.Formatters; namespace GamersRising.Data { public class ApplicationUser : IdentityUser { [StringLength(250)] public string FullName { get; set; } [StringLength(250)] public string UserName { get; set; } [StringLength(250)] public string Email { get; set; } [StringLength(250)] public string PhoneNumber { get; set; } [StringLength(250)] public string DateOfBirth { get; set; } [ForeignKey("UserId")] public virtual ICollection<UserCatagory>? UserCategory { get; set; } } public class ApplicationDbContext : IdentityDbContext<ApplicationUser> { public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options) { } public DbSet<Game> Game { get; set; } public DbSet<Tournament> Tournament { get; set; } public DbSet<TournamentType> TournamentType { get; set; } public DbSet<UserCatagory> UserCatagory { get; set; } public DbSet<Content> Content { get; set; } public DbSet<TournamentFormat> TournamentFormat { get; set; } public DbSet<TournamentMode> TournamentMode { get; set; } } }
25 replies
CC#
Created by TJFrags on 4/4/2023 in #help
❔ Update-Database causing error
@Pobiega I found a soltion to that. It was caused by some miss-placedcode. now im getting this: Invalid column name 'DateOfBirth'. Invalid column name 'FullName'.
25 replies
CC#
Created by TJFrags on 4/4/2023 in #help
❔ Update-Database causing error
I am using .net 7, asp.net core mvc
25 replies
CC#
Created by TJFrags on 2/2/2023 in #help
❔ ASP.NET Core web app vs ASP.net web application(.NET Framework)
ohk got it. THanks everyone
10 replies
CC#
Created by TJFrags on 2/2/2023 in #help
❔ ASP.NET Core web app vs ASP.net web application(.NET Framework)
Alright I got it, one more thing. If i make a webapp using .Net framework and host it will people on other devices be able to acces the site?
10 replies