2022-08-21から1日間の記事一覧
モデルとなるクラスの作成 using System.ComponentModel.DataAnnotations; using Microsoft.EntityFrameworkCore; namespace API.Models.Users { [Index(nameof(Email), IsUnique = true)] public class User { [Key] public Guid Guid { get; set; } public…
# モデルからテーブルを作る場合 add-migration AddedCodeFirstTable # マイグレーションをDBに反映させるコマンド Remove-Migration