init efcore
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using BlueLaminate.EFCore.Entities;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace BlueLaminate.EFCore.Configurations;
|
||||
|
||||
public class SteamUserConfiguration : IEntityTypeConfiguration<SteamUser>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<SteamUser> entity)
|
||||
{
|
||||
entity.HasIndex(e => e.SteamId).IsUnique();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user