C# Class MongoDB.Bson.Serialization.Conventions.ConventionProfile

Inheritance: IConventionPack
显示文件 Open project: egametang/Egametang Class Usage Examples

Private Properties

Property Type Description
GetNewConventions IEnumerable
SetSerializeDefaultValueConvention ConventionProfile

Public Methods

Method Description
GetDefault ( ) : ConventionProfile

Gets the default convention profile.

Merge ( ConventionProfile other ) : void

Merges another convention profile into this one (only missing conventions are merged).

SetDefaultValueConvention ( IDefaultValueConvention convention ) : ConventionProfile

Sets the default value convention.

SetElementNameConvention ( IElementNameConvention convention ) : ConventionProfile

Sets the element name convention.

SetExtraElementsMemberConvention ( IExtraElementsMemberConvention convention ) : ConventionProfile

Sets the extra elements member convention.

SetIdGeneratorConvention ( IIdGeneratorConvention convention ) : ConventionProfile

Sets the Id generator convention.

SetIdMemberConvention ( IIdMemberConvention convention ) : ConventionProfile

Sets the Id member convention.

SetIgnoreExtraElementsConvention ( IIgnoreExtraElementsConvention convention ) : ConventionProfile

Sets the ignore extra elements convention.

SetIgnoreIfDefaultConvention ( IIgnoreIfDefaultConvention convention ) : ConventionProfile

Sets the ignore if default convention.

SetIgnoreIfNullConvention ( IIgnoreIfNullConvention convention ) : ConventionProfile

Sets the ignore if null convention.

SetMemberFinderConvention ( IMemberFinderConvention convention ) : ConventionProfile

Sets the member finder convention.

SetSerializationOptionsConvention ( ISerializationOptionsConvention convention ) : ConventionProfile

Sets the serialization options convention.

Private Methods

Method Description
GetNewConventions ( ) : IEnumerable

Creates a convention pack from the ConventionProfile.

SetSerializeDefaultValueConvention ( ISerializeDefaultValueConvention convention ) : ConventionProfile

Method Details

GetDefault() public static method

Gets the default convention profile.
public static GetDefault ( ) : ConventionProfile
return ConventionProfile

Merge() public method

Merges another convention profile into this one (only missing conventions are merged).
public Merge ( ConventionProfile other ) : void
other ConventionProfile The other convention profile.
return void

SetDefaultValueConvention() public method

Sets the default value convention.
public SetDefaultValueConvention ( IDefaultValueConvention convention ) : ConventionProfile
convention IDefaultValueConvention A default value convention.
return ConventionProfile

SetElementNameConvention() public method

Sets the element name convention.
public SetElementNameConvention ( IElementNameConvention convention ) : ConventionProfile
convention IElementNameConvention An element name convention.
return ConventionProfile

SetExtraElementsMemberConvention() public method

Sets the extra elements member convention.
public SetExtraElementsMemberConvention ( IExtraElementsMemberConvention convention ) : ConventionProfile
convention IExtraElementsMemberConvention An extra elements member convention.
return ConventionProfile

SetIdGeneratorConvention() public method

Sets the Id generator convention.
public SetIdGeneratorConvention ( IIdGeneratorConvention convention ) : ConventionProfile
convention IIdGeneratorConvention An Id generator convention.
return ConventionProfile

SetIdMemberConvention() public method

Sets the Id member convention.
public SetIdMemberConvention ( IIdMemberConvention convention ) : ConventionProfile
convention IIdMemberConvention An Id member convention.
return ConventionProfile

SetIgnoreExtraElementsConvention() public method

Sets the ignore extra elements convention.
public SetIgnoreExtraElementsConvention ( IIgnoreExtraElementsConvention convention ) : ConventionProfile
convention IIgnoreExtraElementsConvention An ignore extra elements convention.
return ConventionProfile

SetIgnoreIfDefaultConvention() public method

Sets the ignore if default convention.
public SetIgnoreIfDefaultConvention ( IIgnoreIfDefaultConvention convention ) : ConventionProfile
convention IIgnoreIfDefaultConvention An ignore if default convention.
return ConventionProfile

SetIgnoreIfNullConvention() public method

Sets the ignore if null convention.
public SetIgnoreIfNullConvention ( IIgnoreIfNullConvention convention ) : ConventionProfile
convention IIgnoreIfNullConvention An ignore if null convention.
return ConventionProfile

SetMemberFinderConvention() public method

Sets the member finder convention.
public SetMemberFinderConvention ( IMemberFinderConvention convention ) : ConventionProfile
convention IMemberFinderConvention A member finder convention.
return ConventionProfile

SetSerializationOptionsConvention() public method

Sets the serialization options convention.
public SetSerializationOptionsConvention ( ISerializationOptionsConvention convention ) : ConventionProfile
convention ISerializationOptionsConvention A serialization options convention.
return ConventionProfile