C# Класс MongoDB.Bson.Serialization.Conventions.ConventionProfile

Наследование: IConventionPack
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetNewConventions IEnumerable
SetSerializeDefaultValueConvention ConventionProfile

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
GetNewConventions ( ) : IEnumerable

Creates a convention pack from the ConventionProfile.

SetSerializeDefaultValueConvention ( ISerializeDefaultValueConvention convention ) : ConventionProfile

Описание методов

GetDefault() публичный статический Метод

Gets the default convention profile.
public static GetDefault ( ) : ConventionProfile
Результат ConventionProfile

Merge() публичный Метод

Merges another convention profile into this one (only missing conventions are merged).
public Merge ( ConventionProfile other ) : void
other ConventionProfile The other convention profile.
Результат void

SetDefaultValueConvention() публичный Метод

Sets the default value convention.
public SetDefaultValueConvention ( IDefaultValueConvention convention ) : ConventionProfile
convention IDefaultValueConvention A default value convention.
Результат ConventionProfile

SetElementNameConvention() публичный Метод

Sets the element name convention.
public SetElementNameConvention ( IElementNameConvention convention ) : ConventionProfile
convention IElementNameConvention An element name convention.
Результат ConventionProfile

SetExtraElementsMemberConvention() публичный Метод

Sets the extra elements member convention.
public SetExtraElementsMemberConvention ( IExtraElementsMemberConvention convention ) : ConventionProfile
convention IExtraElementsMemberConvention An extra elements member convention.
Результат ConventionProfile

SetIdGeneratorConvention() публичный Метод

Sets the Id generator convention.
public SetIdGeneratorConvention ( IIdGeneratorConvention convention ) : ConventionProfile
convention IIdGeneratorConvention An Id generator convention.
Результат ConventionProfile

SetIdMemberConvention() публичный Метод

Sets the Id member convention.
public SetIdMemberConvention ( IIdMemberConvention convention ) : ConventionProfile
convention IIdMemberConvention An Id member convention.
Результат ConventionProfile

SetIgnoreExtraElementsConvention() публичный Метод

Sets the ignore extra elements convention.
public SetIgnoreExtraElementsConvention ( IIgnoreExtraElementsConvention convention ) : ConventionProfile
convention IIgnoreExtraElementsConvention An ignore extra elements convention.
Результат ConventionProfile

SetIgnoreIfDefaultConvention() публичный Метод

Sets the ignore if default convention.
public SetIgnoreIfDefaultConvention ( IIgnoreIfDefaultConvention convention ) : ConventionProfile
convention IIgnoreIfDefaultConvention An ignore if default convention.
Результат ConventionProfile

SetIgnoreIfNullConvention() публичный Метод

Sets the ignore if null convention.
public SetIgnoreIfNullConvention ( IIgnoreIfNullConvention convention ) : ConventionProfile
convention IIgnoreIfNullConvention An ignore if null convention.
Результат ConventionProfile

SetMemberFinderConvention() публичный Метод

Sets the member finder convention.
public SetMemberFinderConvention ( IMemberFinderConvention convention ) : ConventionProfile
convention IMemberFinderConvention A member finder convention.
Результат ConventionProfile

SetSerializationOptionsConvention() публичный Метод

Sets the serialization options convention.
public SetSerializationOptionsConvention ( ISerializationOptionsConvention convention ) : ConventionProfile
convention ISerializationOptionsConvention A serialization options convention.
Результат ConventionProfile