Код: Выделить всё
CREATE TABLE [dbo].[Invitation]
(
[Id] INT NOT NULL IDENTITY(1, 1),
[Name] NVARCHAR(100) NOT NULL,
[Subject] NVARCHAR(100) NOT NULL,
[Body] NVARCHAR(max) NOT NULL,
CONSTRAINT PK_Invitation PRIMARY KEY CLUSTERED ([Id] ASC),
)
Код: Выделить всё
public partial class StudyInvitation
{
public int Id { get; set; }
public string Name { get; set; } = null!;
public string Subject { get; set; } = null!;
public string Body { get; set; } = null!;
}
Подробнее здесь: https://stackoverflow.com/questions/794 ... ar-to-null
Мобильная версия