Esempio n. 1
0
        /* Add mongo collections here. Example:
         * public IMongoCollection<Question> Questions => Collection<Question>();
         */

        protected override void CreateModel(IMongoModelBuilder modelBuilder)
        {
            base.CreateModel(modelBuilder);

            modelBuilder.ConfigureApiCore(options =>
            {
                options.CollectionPrefix = CollectionPrefix;
            });
        }