Add init weapon scraper

This commit is contained in:
bob
2026-05-29 14:00:58 -05:00
parent 286d1366fe
commit 6f3c0175cd
20 changed files with 1199 additions and 62 deletions

View File

@@ -0,0 +1,14 @@
using BlueLaminate.EFCore.Entities;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace BlueLaminate.EFCore.Configurations;
public class WeaponConfiguration : IEntityTypeConfiguration<Weapon>
{
public void Configure(EntityTypeBuilder<Weapon> entity)
{
// Name is the natural key the scraper upserts against.
entity.HasIndex(e => e.Name).IsUnique();
}
}