我正在做一个书店项目,我首先为添加书创建了一个表。所以我想添加登录和注册页面并存储到数据库中,但我对如何添加另一个表或使用迁移创建与我的需要相关的表感到困惑。我已经附上了我的DbContext班级。
原谅我的英文不太好。我在等你的答案。谢谢
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CODEwithZAKI.Data
{
public class BookStoreContext : DbContext
{
public BookStoreContext(DbContextOptions<BookStoreContext> options)
: base(options)
{
}
public DbSet<Books> Books { get; set; }
}
}