Esempio n. 1
0
        public static IMongoDbContextBuilder AddCollection <TDocument>(this IMongoDbContextBuilder builder)
            where TDocument : class
        {
            builder.AddCollection(typeof(TDocument));

            return(builder);
        }
Esempio n. 2
0
        public static IMongoDbContextBuilder UseIgnoreIfNull(this IMongoDbContextBuilder builder, bool ignoreIfNull)
        {
            builder.Conventions.Add(new IgnoreIfNullConvention(ignoreIfNull));

            return(builder);
        }
Esempio n. 3
0
        public static IMongoDbContextBuilder UseIgnoreIfDefault(this IMongoDbContextBuilder builder, bool ignoreIfDefault)
        {
            builder.Conventions.Add(new IgnoreIfDefaultConvention(ignoreIfDefault));

            return(builder);
        }
Esempio n. 4
0
        public static IMongoDbContextBuilder UseCamelCaseElementName(this IMongoDbContextBuilder builder)
        {
            builder.Conventions.Add(new CamelCaseElementNameConvention());

            return(builder);
        }