MongoDB.Bson.Serialization.Conventions.ConventionProfile.SetElementNameConvention C# (CSharp) 메소드

SetElementNameConvention() 공개 메소드

Sets the element name convention.
public SetElementNameConvention ( IElementNameConvention convention ) : ConventionProfile
convention IElementNameConvention An element name convention.
리턴 ConventionProfile
        public ConventionProfile SetElementNameConvention(IElementNameConvention convention)
        {
            ElementNameConvention = convention;
            return this;
        }

Usage Example

예제 #1
0
		protected override void ConfigureConventions(Nancy.Conventions.NancyConventions nancyConventions)
		{
			base.ConfigureConventions(nancyConventions);
			var profile = new ConventionProfile();
			profile.SetElementNameConvention(new CamelCaseElementNameConvention());
			MongoDB.Bson.Serialization.BsonClassMap.RegisterConventions(profile, _ => true);
		}
All Usage Examples Of MongoDB.Bson.Serialization.Conventions.ConventionProfile::SetElementNameConvention