src/ZKEACMS/CMSDbContext.cs

(完整代码) 2KB

/* http://www.zkea.net/ 
 * Copyright (c) ZKEASOFT. All rights reserved. 
 * http://www.zkea.net/licenses */

using System.Collections.Generic;
using Easy;
using Easy.RepositoryPattern;
using Microsoft.EntityFrameworkCore;
using ZKEACMS.Common.Models;
using ZKEACMS.ExtendField;
using ZKEACMS.Layout;
using ZKEACMS.Media;
using ZKEACMS.Page;
using ZKEACMS.Setting;
using ZKEACMS.Theme;
using ZKEACMS.Widget;
using ZKEACMS.WidgetTemplate;
using ZKEACMS.Zone;

namespace ZKEACMS
{
    public class CMSDbContext : EasyDbContext
    {
        public CMSDbContext(DbContextOptions<CMSDbContext> dbContextOptions, IEnumerable<IOnModelCreating> modelCreatings) : base(dbContextOptions)
        {
            ModelCreatings = modelCreatings;
        }

        public DbSet<WidgetBasePart> WidgetBasePart { get; set; }
        public DbSet<ApplicationSetting> ApplicationSetting { get; set; }
        public DbSet<CarouselEntity> Carousel { get; set; }
        public DbSet<CarouselItemEntity> CarouselItem { get; set; }
        public DbSet<CarouselWidget> CarouselWidget { get; set; }
        public DbSet<LayoutEntity> Layout { get; set; }
        public DbSet<LayoutHtml> LayoutHtml { get; set; }
        public DbSet<MediaEntity> Media { get; set; }
        public DbSet<PageEntity> Page { get; set; }
        public DbSet<ThemeEntity> Theme { get; set; }
        public DbSet<ZoneEntity> Zone { get; set; }
        public DbSet<DataArchived.DataArchived> DataArchived { get; set; }
        public DbSet<ExtendFieldEntity> ExtendField { get; set; }
        public DbSet<HtmlWidget> HtmlWidget { get; set; }
        public DbSet<ImageWidget> ImageWidget { get; set; }
        public DbSet<NavigationEntity> Navigation { get; set; }
        public DbSet<NavigationWidget> NavigationWidget { get; set; }
        public DbSet<ScriptWidget> ScriptWidget { get; set; }
        public DbSet<StyleSheetWidget> StyleSheetWidget { get; set; }
        public DbSet<VideoWidget> VideoWidget { get; set; }
        public DbSet<BreadcrumbWidget> BreadcrumbWidget { get; set; }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。