/
Laxerem
/
BaskBot
Обзор
Документация
Войти
/
Laxerem
/
BaskBot
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
BaskBot.Database/Configurations/AssistantConfiguration.cs
15 строк
502 B
Laxerem
Starting create a database
03 янв 2026, 18:05
03 янв 2026, 18:05
fc5de48
Код
Авторство
О чём код?
using BaskBot.Core.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace BaskBot.Database.Configurations; public class AssistantConfiguration : IEntityTypeConfiguration<Assistant> { public void Configure(EntityTypeBuilder<Assistant> builder) { builder.ToTable("Assistants"); builder.HasKey(x => x.Id); builder.Property(x => x.Id).ValueGeneratedNever(); builder.Property(x => x.BasePrompt); } }