DD.WellWorkover.Cloud/AsbCloudDb/Model/NotificationTransport.cs
Степанов Дмитрий Александрович d1555cc67b Изменение модели
1. Добавил новые сущности: уведомление, категория уведомления, способ отправки уведомления
2. Добавил DTO для новых сущностей
3. Накатил миграцию
4. Поправил DbContext
2023-07-07 16:26:16 +05:00

20 lines
685 B
C#

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace AsbCloudDb.Model;
[Table("t_notification_transport"), Comment("Способ доставки уведомлений")]
public class NotificationTransport : IId
{
[Key]
[Column("id")]
public int Id { get; set; }
[Column("name"), Comment("Название способа доставки уведомлений")]
public string Name { get; set; } = null!;
[InverseProperty(nameof(Notification.NotificationTransport))]
public virtual ICollection<Notification> Notifications { get; set; } = null!;
}