C# 클래스 DLaB.CrmSvcUtilExtensions.OptionSet.CodeWriterFilterService

Specifies that OptionSets should be created. Works in conjunction with CreateOptionSetEnums, since it also specifies other data to be created, but the CreateOptionSetEnums removes it from the DOM after it's already been added, since it needs the metadata. Prevents duplicate OptionSetGeneration
상속: ICodeWriterFilterService
파일 보기 프로젝트 열기: daryllabar/DLaB.Xrm.XrmToolBoxTools

Private Properties

프로퍼티 타입 설명
Skip bool

공개 메소드들

메소드 설명
CodeWriterFilterService ( ICodeWriterFilterService defaultService ) : System
GenerateAttribute ( AttributeMetadata attributeMetadata, IServiceProvider services ) : bool

Ideally, we wouldn't generate any attributes, but we must in order to leverage the logic in CrmSvcUtil. If the attribute for an OptionSet is not generated, then a null reference exception is thrown when attempting to create the OptionSet. We will remove these in our ICustomizeCodeDomService implementation.

GenerateEntity ( EntityMetadata entityMetadata, IServiceProvider services ) : bool

Ideally, we wouldn't generate any entities, but we must in order to leverage the logic in CrmSvcUtil. If an entity which contains a custom OptionSet attribute is not generated, then the custom OptionSet will not be generated, either. We will remove these in our ICustomizeCodeDomService implementation.

GenerateOption ( OptionMetadata optionMetadata, IServiceProvider services ) : bool
GenerateOptionSet ( OptionSetMetadataBase optionSetMetadata, IServiceProvider services ) : bool

Does not mark the OptionSet for generation if it has already been generated. This could get called for the same Global Option Set multiple times because it's on multiple Entites

GenerateRelationship ( RelationshipMetadataBase relationshipMetadata, EntityMetadata otherEntityMetadata, IServiceProvider services ) : bool

We don't want to generate any relationships.

GenerateServiceContext ( IServiceProvider services ) : bool

We don't want to generate any service contexts.

비공개 메소드들

메소드 설명
Skip ( string name ) : bool

메소드 상세

CodeWriterFilterService() 공개 메소드

public CodeWriterFilterService ( ICodeWriterFilterService defaultService ) : System
defaultService ICodeWriterFilterService
리턴 System

GenerateAttribute() 공개 메소드

Ideally, we wouldn't generate any attributes, but we must in order to leverage the logic in CrmSvcUtil. If the attribute for an OptionSet is not generated, then a null reference exception is thrown when attempting to create the OptionSet. We will remove these in our ICustomizeCodeDomService implementation.
public GenerateAttribute ( AttributeMetadata attributeMetadata, IServiceProvider services ) : bool
attributeMetadata AttributeMetadata
services IServiceProvider
리턴 bool

GenerateEntity() 공개 메소드

Ideally, we wouldn't generate any entities, but we must in order to leverage the logic in CrmSvcUtil. If an entity which contains a custom OptionSet attribute is not generated, then the custom OptionSet will not be generated, either. We will remove these in our ICustomizeCodeDomService implementation.
public GenerateEntity ( EntityMetadata entityMetadata, IServiceProvider services ) : bool
entityMetadata EntityMetadata
services IServiceProvider
리턴 bool

GenerateOption() 공개 메소드

public GenerateOption ( OptionMetadata optionMetadata, IServiceProvider services ) : bool
optionMetadata OptionMetadata
services IServiceProvider
리턴 bool

GenerateOptionSet() 공개 메소드

Does not mark the OptionSet for generation if it has already been generated. This could get called for the same Global Option Set multiple times because it's on multiple Entites
public GenerateOptionSet ( OptionSetMetadataBase optionSetMetadata, IServiceProvider services ) : bool
optionSetMetadata OptionSetMetadataBase
services IServiceProvider
리턴 bool

GenerateRelationship() 공개 메소드

We don't want to generate any relationships.
public GenerateRelationship ( RelationshipMetadataBase relationshipMetadata, EntityMetadata otherEntityMetadata, IServiceProvider services ) : bool
relationshipMetadata RelationshipMetadataBase
otherEntityMetadata EntityMetadata
services IServiceProvider
리턴 bool

GenerateServiceContext() 공개 메소드

We don't want to generate any service contexts.
public GenerateServiceContext ( IServiceProvider services ) : bool
services IServiceProvider
리턴 bool