C# 클래스 DLaB.CrmSvcUtilExtensions.BaseCustomCodeGenerationService

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

Private Properties

프로퍼티 타입 설명
CheckoutFile void
GetName string
GetNewLines IEnumerable
SetSourceControlInfo void
SplitFileByCodeUnit void
WriteFileIfDifferent void
WriteFilesAsync void

공개 메소드들

메소드 설명
GetTypeForAttribute ( Microsoft entityMetadata, Microsoft attributeMetadata, IServiceProvider services ) : CodeGenerationType
GetTypeForEntity ( Microsoft entityMetadata, IServiceProvider services ) : CodeGenerationType
GetTypeForMessagePair ( Microsoft.Crm.Services.Utility.SdkMessagePair messagePair, IServiceProvider services ) : CodeGenerationType
GetTypeForOption ( Microsoft optionSetMetadata, Microsoft optionMetadata, IServiceProvider services ) : CodeGenerationType
GetTypeForOptionSet ( Microsoft entityMetadata, Microsoft optionSetMetadata, IServiceProvider services ) : CodeGenerationType
GetTypeForRequestField ( Microsoft.Crm.Services.Utility.SdkMessageRequest request, Microsoft.Crm.Services.Utility.SdkMessageRequestField requestField, IServiceProvider services ) : CodeGenerationType
GetTypeForResponseField ( Microsoft.Crm.Services.Utility.SdkMessageResponse response, Microsoft.Crm.Services.Utility.SdkMessageResponseField responseField, IServiceProvider services ) : CodeGenerationType
Write ( IOrganizationMetadata organizationMetadata, string language, string outputFile, string targetNamespace, IServiceProvider services ) : void

보호된 메소드들

메소드 설명
BaseCustomCodeGenerationService ( ICodeGenerationService service ) : System
EnsureFileIsAccessible ( string filePath ) : void
GetFileTextWithUpdatedClassComment ( string filePath, string commandLineText, bool removeRuntimeVersionComment ) : IEnumerable
GetTypeForAttributeInternal ( Microsoft entityMetadata, Microsoft attributeMetadata, IServiceProvider services ) : CodeGenerationType
GetTypeForEntityInternal ( Microsoft entityMetadata, IServiceProvider services ) : CodeGenerationType
GetTypeForMessagePairInternal ( Microsoft.Crm.Services.Utility.SdkMessagePair messagePair, IServiceProvider services ) : CodeGenerationType
GetTypeForOptionInternal ( Microsoft optionSetMetadata, Microsoft optionMetadata, IServiceProvider services ) : CodeGenerationType
GetTypeForOptionSetInternal ( Microsoft entityMetadata, Microsoft optionSetMetadata, IServiceProvider services ) : CodeGenerationType
GetTypeForRequestFieldInternal ( Microsoft.Crm.Services.Utility.SdkMessageRequest request, Microsoft.Crm.Services.Utility.SdkMessageRequestField requestField, IServiceProvider services ) : CodeGenerationType
GetTypeForResponseFieldInternal ( Microsoft.Crm.Services.Utility.SdkMessageResponse response, Microsoft.Crm.Services.Utility.SdkMessageResponseField responseField, IServiceProvider services ) : CodeGenerationType
Log ( string log ) : void
UndoCheckoutIfUnchanged ( string fileName ) : bool

Returns true if the file was unchanged and an undo operation was performed

WriteInternal ( IOrganizationMetadata organizationMetadata, string language, string outputFile, string targetNamespace, IServiceProvider services ) : void

비공개 메소드들

메소드 설명
CheckoutFile ( string fileName ) : void
GetName ( CodeUnit codeUnit, string line ) : string
GetNewLines ( string lines, int insertAtLine, string text, int skipLine ) : IEnumerable
SetSourceControlInfo ( FileToCreate file ) : void
SplitFileByCodeUnit ( CodeUnit codeUnit, string filePath, IEnumerable lines ) : void
WriteFileIfDifferent ( ProjectFile project, FileToCreate file ) : void
WriteFilesAsync ( List files ) : void

메소드 상세

BaseCustomCodeGenerationService() 보호된 메소드

protected BaseCustomCodeGenerationService ( ICodeGenerationService service ) : System
service ICodeGenerationService
리턴 System

EnsureFileIsAccessible() 보호된 메소드

protected EnsureFileIsAccessible ( string filePath ) : void
filePath string
리턴 void

GetFileTextWithUpdatedClassComment() 보호된 메소드

protected GetFileTextWithUpdatedClassComment ( string filePath, string commandLineText, bool removeRuntimeVersionComment ) : IEnumerable
filePath string
commandLineText string
removeRuntimeVersionComment bool
리턴 IEnumerable

GetTypeForAttribute() 공개 메소드

public GetTypeForAttribute ( Microsoft entityMetadata, Microsoft attributeMetadata, IServiceProvider services ) : CodeGenerationType
entityMetadata Microsoft
attributeMetadata Microsoft
services IServiceProvider
리턴 CodeGenerationType

GetTypeForAttributeInternal() 보호된 메소드

protected GetTypeForAttributeInternal ( Microsoft entityMetadata, Microsoft attributeMetadata, IServiceProvider services ) : CodeGenerationType
entityMetadata Microsoft
attributeMetadata Microsoft
services IServiceProvider
리턴 CodeGenerationType

GetTypeForEntity() 공개 메소드

public GetTypeForEntity ( Microsoft entityMetadata, IServiceProvider services ) : CodeGenerationType
entityMetadata Microsoft
services IServiceProvider
리턴 CodeGenerationType

GetTypeForEntityInternal() 보호된 메소드

protected GetTypeForEntityInternal ( Microsoft entityMetadata, IServiceProvider services ) : CodeGenerationType
entityMetadata Microsoft
services IServiceProvider
리턴 CodeGenerationType

GetTypeForMessagePair() 공개 메소드

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

GetTypeForMessagePairInternal() 보호된 메소드

protected GetTypeForMessagePairInternal ( Microsoft.Crm.Services.Utility.SdkMessagePair messagePair, IServiceProvider services ) : CodeGenerationType
messagePair Microsoft.Crm.Services.Utility.SdkMessagePair
services IServiceProvider
리턴 CodeGenerationType

GetTypeForOption() 공개 메소드

public GetTypeForOption ( Microsoft optionSetMetadata, Microsoft optionMetadata, IServiceProvider services ) : CodeGenerationType
optionSetMetadata Microsoft
optionMetadata Microsoft
services IServiceProvider
리턴 CodeGenerationType

GetTypeForOptionInternal() 보호된 메소드

protected GetTypeForOptionInternal ( Microsoft optionSetMetadata, Microsoft optionMetadata, IServiceProvider services ) : CodeGenerationType
optionSetMetadata Microsoft
optionMetadata Microsoft
services IServiceProvider
리턴 CodeGenerationType

GetTypeForOptionSet() 공개 메소드

public GetTypeForOptionSet ( Microsoft entityMetadata, Microsoft optionSetMetadata, IServiceProvider services ) : CodeGenerationType
entityMetadata Microsoft
optionSetMetadata Microsoft
services IServiceProvider
리턴 CodeGenerationType

GetTypeForOptionSetInternal() 보호된 메소드

protected GetTypeForOptionSetInternal ( Microsoft entityMetadata, Microsoft optionSetMetadata, IServiceProvider services ) : CodeGenerationType
entityMetadata Microsoft
optionSetMetadata Microsoft
services IServiceProvider
리턴 CodeGenerationType

GetTypeForRequestField() 공개 메소드

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

GetTypeForRequestFieldInternal() 보호된 메소드

protected GetTypeForRequestFieldInternal ( Microsoft.Crm.Services.Utility.SdkMessageRequest request, Microsoft.Crm.Services.Utility.SdkMessageRequestField requestField, IServiceProvider services ) : CodeGenerationType
request Microsoft.Crm.Services.Utility.SdkMessageRequest
requestField Microsoft.Crm.Services.Utility.SdkMessageRequestField
services IServiceProvider
리턴 CodeGenerationType

GetTypeForResponseField() 공개 메소드

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

GetTypeForResponseFieldInternal() 보호된 메소드

protected GetTypeForResponseFieldInternal ( Microsoft.Crm.Services.Utility.SdkMessageResponse response, Microsoft.Crm.Services.Utility.SdkMessageResponseField responseField, IServiceProvider services ) : CodeGenerationType
response Microsoft.Crm.Services.Utility.SdkMessageResponse
responseField Microsoft.Crm.Services.Utility.SdkMessageResponseField
services IServiceProvider
리턴 CodeGenerationType

Log() 보호된 메소드

protected Log ( string log ) : void
log string
리턴 void

UndoCheckoutIfUnchanged() 보호된 메소드

Returns true if the file was unchanged and an undo operation was performed
protected UndoCheckoutIfUnchanged ( string fileName ) : bool
fileName string
리턴 bool

Write() 공개 메소드

public Write ( IOrganizationMetadata organizationMetadata, string language, string outputFile, string targetNamespace, IServiceProvider services ) : void
organizationMetadata IOrganizationMetadata
language string
outputFile string
targetNamespace string
services IServiceProvider
리턴 void

WriteInternal() 보호된 메소드

protected WriteInternal ( IOrganizationMetadata organizationMetadata, string language, string outputFile, string targetNamespace, IServiceProvider services ) : void
organizationMetadata IOrganizationMetadata
language string
outputFile string
targetNamespace string
services IServiceProvider
리턴 void