/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
tests/MassTransit.EntityFrameworkCoreIntegration.Tests/SimpleSaga/DataAccess/SimpleSagaMap.cs
20 строк
656 B
Chris Patterson
Integration of all external packages into MassTransit, split out into Abstractions, Middleware, and the core MassTransit assembly.
22 янв 2022, 18:24
22 янв 2022, 18:24
b5b4f50
Код
Авторство
О чём код?
namespace MassTransit.EntityFrameworkCoreIntegration.Tests.SimpleSaga.DataAccess { using MassTransit.Tests.Saga; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; class SimpleSagaMap : SagaClassMap<SimpleSaga> { protected override void Configure(EntityTypeBuilder<SimpleSaga> entity, ModelBuilder model) { entity.Property(x => x.Name).HasMaxLength(40); entity.Property(x => x.Initiated); entity.Property(x => x.Observed); entity.Property(x => x.Completed); entity.ToTable("EfCoreSimpleSagas"); } } }