/BlazorCompanyManager

Just a small demo application made on Blazor and NET6.0

Primary LanguageC#

BlazorCompanyManager

Database should be created locally. You have to edit connection string in json file (https://github.com/vadimffe/BlazorCompanyManager/blob/master/BlazorCompanyManager/appsettings.json):

{
  "ConnectionStrings": {
    "MyConnection": "Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=C:\\Users\\PC\\source\\repos\\BlazorCompanyManager\\BlazorCompanyManager\\BlazorCompanyDB.mdf;Integrated Security=True;Connect Timeout=30"
  },
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },
  "AllowedHosts": "*"
}

Edit path to your mdf file

Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=C:\\Users\\PC\\source\\repos\\BlazorCompanyManager\\BlazorCompanyManager\\BlazorCompanyDB.mdf;Integrated Security=True;Connect Timeout=30

After this using migrations file in this repository and Package Manager Console use following commands:

  • add-migration StartEmployeeTable
  • update-database