using Atomx.Common.Entities; using Microsoft.EntityFrameworkCore; namespace Atomx.Data { public class DataContext : DbContext { //add-migration 0.1 // add-migration 0.1 -Context DataContext //update-database // update-database -Context DataContext //Remove-Migration // Remove-Migration -Context DataContext public DataContext(DbContextOptions options) : base(options) { } protected DataContext() { } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { } protected override void OnModelCreating(ModelBuilder builder) { } /// /// 用户地址信息 /// public DbSet
Addresses { get; set; } /// /// Admin 帐号 /// public DbSet Admins { get; set; } /// /// 应用版本记录 /// public DbSet AppVersions { get; set; } /// /// 国家省市地区 /// public DbSet Areas { get; set; } /// /// 分类 /// public DbSet Categories { get; set; } /// /// 货币信息 /// public DbSet Currencies { get; set; } /// /// 货币与支付通道关联表 /// public DbSet CurrencyChannelRelations { get; set; } /// /// 本地化资源数据 /// public DbSet LocaleResources { get; set; } /// /// 多语言数据本地化数据 /// public DbSet LocalizedProperties { get; set; } /// /// 支付通道信息 /// public DbSet PaymentChannels { get; set; } /// /// 权限信息 /// public DbSet Permissions { get; set; } /// /// 产品信息 /// public DbSet Products { get; set; } /// /// 产品属性组合信息 /// public DbSet ProductAttributeCombinations { get; set; } /// /// 产品属性值 /// public DbSet ProductAttributeOptions { get; set; } /// /// 产品属性值 /// public DbSet ProductAttributeValues { get; set; } /// /// 产品属性关系 /// public DbSet ProductAttributeRelations { get; set; } /// /// 产品的属性值 /// public DbSet ProductAttributes { get; set; } /// /// 产品库存信息 /// public DbSet ProductInventories { get; set; } /// /// 产品库存记录日志 /// public DbSet ProductInventoryLogs { get; set; } /// /// 产品的规格属性 /// public DbSet SpecificationAttributes { get; set; } /// /// 规格属性预设值 /// public DbSet SpecificationAttributeOptions { get; set; } /// /// 用户角色 /// public DbSet Roles { get; set; } /// /// 系统配置 /// public DbSet Settings { get; set; } /// /// 网站应用 /// public DbSet SiteApps { get; set; } /// /// 多语言 /// public DbSet Languages { get; set; } /// /// 消息模版 /// public DbSet MessageTemplates { get; set; } /// /// 后台功能菜单 /// public DbSet Menus { get; set; } /// /// 上传文件 /// public DbSet UploadFiles { get; set; } /// /// 用户基本信息 /// public DbSet Users { get; set; } } }