示例#1
0
        protected override void OnModelCreating(ModelBuilder builder)
        {
            base.OnModelCreating(builder);

            UserContext.Build(builder);
            RoleContext.Build(builder);
        }
示例#2
0
        protected override void OnModelCreating(ModelBuilder builder)
        {
            base.OnModelCreating(builder);

            UserContext.Build(builder);
            UserStatusRefContext.Build(builder);
            UserIdentityContext.Build(builder);
        }
示例#3
0
        protected override void OnModelCreating(ModelBuilder builder)
        {
            base.OnModelCreating(builder);
            FixSnakeCaseNames(builder);

            UserContext.Build(builder);
            UserMetadataContext.Build(builder);
            MetadataTypeReferenceContext.Build(builder);
            UserAnswerContext.Build(builder);
            UserQuestionContext.Build(builder);
            QuestionReportContext.Build(builder);

            QuestionContext.Build(builder);
            QuestionLocalizationContext.Build(builder);
            QuestionTypeReferenceContext.Build(builder);

            AnswerContext.Build(builder);
            AnswerLocalizationContext.Build(builder);

            LocalizationContext.Build(builder);
            LocaleReferenceContext.Build(builder);
        }