/// <summary>
        /// Instala os mapeamentos dos modelos para o MongoDB
        /// </summary>
        public static void Install()
        {
            // Define como Camel Case o nome das chaves de cada registro no banco de dados
            ConventionPack conventionPack = new ConventionPack {
                new CamelCaseElementNameConvention()
            };

            ConventionRegistry.Register("camelCase", conventionPack, t => true);

            AuctionMap.Configure();
            AuctionResponsibleUserMap.Configure();
            UserMap.Configure();
        }
Esempio n. 2
0
 protected override void OnModelCreating(ModelBuilder builder)
 {
     UserMap.Configure(builder);
     PersonMap.Configure(builder);
     PersonCheckListItemMap.Configure(builder);
     PersonCheckListMap.Configure(builder);
     QuizMap.Configure(builder);
     QuestionMap.Configure(builder);
     AnswerMap.Configure(builder);
     TopicCategoryMap.Configure(builder);
     TopicMap.Configure(builder);
     SupportingScriptureMap.Configure(builder);
     PersonAnswerMap.Configure(builder);
 }