public static void Configure()
 {
     PollMap.Configure();
     PollOptionsMap.Configure();
     PollStatsMap.Configure();
     PollVotesMap.Configure();
 }
示例#2
0
        public static void Configure()
        {
            ConventionPack conventionPack = new ConventionPack
            {
                new IgnoreIfDefaultConvention(true),
                new IgnoreExtraElementsConvention(true),
                new CamelCaseElementNameConvention(),
                new EnumRepresentationConvention(BsonType.String)
            };

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

            BsonDefaults.GuidRepresentation = GuidRepresentation.Standard;

            EntityBaseMap.Configure();
            UserProfileMap.Configure();
            GameMap.Configure();
            UserContentMap.Configure();
            UserPreferencesMap.Configure();
            FeaturedContentMap.Configure();
            GamificationActionMap.Configure();
            GamificationLevelMap.Configure();
            GamificationMap.Configure();
            PollMap.Configure();
            BrainstormMap.Configure();
            TeamMap.Configure();
            JobsMap.Configure();
            TranslationMap.Configure();
        }