Compare commits

..

2 Commits

Author SHA1 Message Date
a353b4c3f8 test: upgrade test
Some checks failed
.NET Test Pipeline / build-and-test (pull_request) Failing after 2m13s
2024-05-30 21:19:54 +03:00
b81fe6d8c1 fix: rename table 2024-05-30 20:29:11 +03:00
2 changed files with 6 additions and 4 deletions

View File

@ -2,17 +2,19 @@ name: .NET Test Pipeline
on: on:
pull_request: pull_request:
branches: [master, 'release/*'] push:
branches:
[master, 'release/*']
jobs: jobs:
build-and-test: build-and-test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Set up .NET Core - name: Set up .NET Core
uses: actions/setup-dotnet@v3 uses: actions/setup-dotnet@v4
with: with:
dotnet-version: 8.0.x dotnet-version: 8.0.x

View File

@ -8,7 +8,7 @@ public sealed class CampusConfiguration : IEntityTypeConfiguration<Campus>
{ {
public void Configure(EntityTypeBuilder<Campus> builder) public void Configure(EntityTypeBuilder<Campus> builder)
{ {
builder.ToTable("MyCampusName"); builder.ToTable(nameof(Campus));
builder.HasKey(c => c.Id); builder.HasKey(c => c.Id);
builder.HasIndex(c => c.Id).IsUnique(); builder.HasIndex(c => c.Id).IsUnique();
builder.Property(c => c.Id).HasColumnType("INTEGER").IsRequired().ValueGeneratedOnAdd(); builder.Property(c => c.Id).HasColumnType("INTEGER").IsRequired().ValueGeneratedOnAdd();