C# 클래스 DLaB.CrmSvcUtilExtensions.NamingService

상속: INamingService
파일 보기 프로젝트 열기: daryllabar/DLaB.Xrm.XrmToolBoxTools

Private Properties

프로퍼티 타입 설명
AppendState string
AppendValueForDuplicateOptionSetValueNames string
GetDuplicateNameValues bool>.Dictionary
GetValidCSharpName string
IsLabelPopulated bool
Transliterate string
UpdateCasingForCustomGlobalOptionSets string
UpdateCasingForGlobalOptionSets string

공개 메소드들

메소드 설명
GetNameForAttribute ( EntityMetadata entityMetadata, AttributeMetadata attributeMetadata, IServiceProvider services ) : string

Allows for Specified Attribute Nmaes to be used to set the generated attribute name

GetNameForEntity ( EntityMetadata entityMetadata, IServiceProvider services ) : string
GetNameForEntitySet ( EntityMetadata entityMetadata, IServiceProvider services ) : string
GetNameForMessagePair ( Microsoft.Crm.Services.Utility.SdkMessagePair messagePair, IServiceProvider services ) : string
GetNameForOption ( OptionSetMetadataBase optionSetMetadata, OptionMetadata optionMetadata, IServiceProvider services ) : string
GetNameForOptionSet ( EntityMetadata entityMetadata, OptionSetMetadataBase optionSetMetadata, IServiceProvider services ) : string

Provide a new implementation for finding a name for an OptionSet. If the OptionSet is not global, we want the name to be the concatenation of the Entity's name and the Attribute's name. Otherwise, we can use the default implementation.

GetNameForRelationship ( EntityMetadata entityMetadata, RelationshipMetadataBase relationshipMetadata, EntityRole reflexiveRole, IServiceProvider services ) : string
GetNameForRequestField ( Microsoft.Crm.Services.Utility.SdkMessageRequest request, Microsoft.Crm.Services.Utility.SdkMessageRequestField requestField, IServiceProvider services ) : string
GetNameForResponseField ( Microsoft.Crm.Services.Utility.SdkMessageResponse response, Microsoft.Crm.Services.Utility.SdkMessageResponseField responseField, IServiceProvider services ) : string
GetNameForServiceContext ( IServiceProvider services ) : string
NamingService ( INamingService defaultService ) : System

비공개 메소드들

메소드 설명
AppendState ( OptionMetadata option, string name ) : string
AppendValueForDuplicateOptionSetValueNames ( OptionSetMetadataBase optionSetMetadata, string name, int value, IServiceProvider services ) : string

Appends the value of the optionset for options with duplicatenames.

GetDuplicateNameValues ( OptionSetMetadataBase metadata, IServiceProvider services ) : bool>.Dictionary

Checks to make sure that the name does not already exist for the OptionSetto be generated.

GetValidCSharpName ( string name ) : string

Checks to make sure that the name begins with a valid character. If the name does not begin with a valid character, then add an underscore to the beginning of the name.

IsLabelPopulated ( string label ) : bool

Determines whether the name is null, or empty, or "UnknownLabel"

Transliterate ( OptionMetadata optionMetadata, string defaultName ) : string
UpdateCasingForCustomGlobalOptionSets ( string name, OptionSetMetadataBase optionSetMetadata ) : string
UpdateCasingForGlobalOptionSets ( string name, OptionSetMetadataBase optionSetMetadata ) : string

메소드 상세

GetNameForAttribute() 공개 메소드

Allows for Specified Attribute Nmaes to be used to set the generated attribute name
public GetNameForAttribute ( EntityMetadata entityMetadata, AttributeMetadata attributeMetadata, IServiceProvider services ) : string
entityMetadata EntityMetadata The entity metadata.
attributeMetadata AttributeMetadata The attribute metadata.
services IServiceProvider The services.
리턴 string

GetNameForEntity() 공개 메소드

public GetNameForEntity ( EntityMetadata entityMetadata, IServiceProvider services ) : string
entityMetadata EntityMetadata
services IServiceProvider
리턴 string

GetNameForEntitySet() 공개 메소드

public GetNameForEntitySet ( EntityMetadata entityMetadata, IServiceProvider services ) : string
entityMetadata EntityMetadata
services IServiceProvider
리턴 string

GetNameForMessagePair() 공개 메소드

public GetNameForMessagePair ( Microsoft.Crm.Services.Utility.SdkMessagePair messagePair, IServiceProvider services ) : string
messagePair Microsoft.Crm.Services.Utility.SdkMessagePair
services IServiceProvider
리턴 string

GetNameForOption() 공개 메소드

public GetNameForOption ( OptionSetMetadataBase optionSetMetadata, OptionMetadata optionMetadata, IServiceProvider services ) : string
optionSetMetadata OptionSetMetadataBase
optionMetadata OptionMetadata
services IServiceProvider
리턴 string

GetNameForOptionSet() 공개 메소드

Provide a new implementation for finding a name for an OptionSet. If the OptionSet is not global, we want the name to be the concatenation of the Entity's name and the Attribute's name. Otherwise, we can use the default implementation.
public GetNameForOptionSet ( EntityMetadata entityMetadata, OptionSetMetadataBase optionSetMetadata, IServiceProvider services ) : string
entityMetadata EntityMetadata
optionSetMetadata OptionSetMetadataBase
services IServiceProvider
리턴 string

GetNameForRelationship() 공개 메소드

public GetNameForRelationship ( EntityMetadata entityMetadata, RelationshipMetadataBase relationshipMetadata, EntityRole reflexiveRole, IServiceProvider services ) : string
entityMetadata EntityMetadata
relationshipMetadata RelationshipMetadataBase
reflexiveRole EntityRole
services IServiceProvider
리턴 string

GetNameForRequestField() 공개 메소드

public GetNameForRequestField ( Microsoft.Crm.Services.Utility.SdkMessageRequest request, Microsoft.Crm.Services.Utility.SdkMessageRequestField requestField, IServiceProvider services ) : string
request Microsoft.Crm.Services.Utility.SdkMessageRequest
requestField Microsoft.Crm.Services.Utility.SdkMessageRequestField
services IServiceProvider
리턴 string

GetNameForResponseField() 공개 메소드

public GetNameForResponseField ( Microsoft.Crm.Services.Utility.SdkMessageResponse response, Microsoft.Crm.Services.Utility.SdkMessageResponseField responseField, IServiceProvider services ) : string
response Microsoft.Crm.Services.Utility.SdkMessageResponse
responseField Microsoft.Crm.Services.Utility.SdkMessageResponseField
services IServiceProvider
리턴 string

GetNameForServiceContext() 공개 메소드

public GetNameForServiceContext ( IServiceProvider services ) : string
services IServiceProvider
리턴 string

NamingService() 공개 메소드

public NamingService ( INamingService defaultService ) : System
defaultService INamingService
리턴 System