C# Class DLaB.AttributeManager.Logic

Mostrar archivo Open project: daryllabar/DLaB.Xrm.XrmToolBoxTools Class Usage Examples

Public Methods

Method Description
Logic ( IOrganizationService service, McTools.Xrm.Connection.ConnectionDetail connectionDetail, EntityMetadata metadata, string tempPostFix, bool migrateData ) : System
Run ( AttributeMetadata att, string newAttributeSchemaName, Steps stepsToPerform, System.Action actions, AttributeMetadata newAttributeType = null ) : void

Private Methods

Method Description
AddConditionsForValueInCsv ( FilterExpression filter, string entityName, string fieldName, string value ) : void
AddFetchXmlCriteria ( QueryExpression qe, string fieldName, string entityName, string attributeName ) : void
AssertCanDelete ( IOrganizationService service, AttributeMetadata attribute ) : void
AssertInvalidState ( string message ) : void
AssertValidStepsForState ( string existingSchemaName, string newSchemaName, Steps stepsToPerform, AttributeMigrationState state, System.Action actions ) : void
ClearFieldDependencies ( AttributeMetadata att ) : void
CopyData ( IOrganizationService service, AttributeMetadata from, AttributeMetadata to, System.Action actions ) : void
CreateAttributeWithDifferentName ( IOrganizationService service, AttributeMetadata existingAtt, string newSchemaName, AttributeMetadata newAttributeType ) : AttributeMetadata
CreateNew ( string newAttributeSchemaName, Steps stepsToPerform, AttributeMetadata attributeToCopy, AttributeMetadata &createdAttributeOrAttributeIfAlreadyCreated, AttributeMetadata newAttributeType ) : void
CreateTemp ( Steps stepsToPerform, AttributeMetadata oldAtt, AttributeMetadata &tmpAtt, AttributeMetadata newAttributeType ) : void
DeleteField ( IOrganizationService service, AttributeMetadata att ) : void
GetApplicationMigrationState ( IOrganizationService service, AttributeMetadata att, string newSchemaName ) : AttributeMigrationState
GetClassId ( AttributeMetadata att ) : string
GetFormsWithAttribute ( IOrganizationService service, AttributeMetadata att ) : List
GetRecordCount ( IOrganizationService service, AttributeMetadata from ) : int
GetSystemChartsWithAttribute ( IOrganizationService service, AttributeMetadata from ) : List
GetUserChartsWithAttribute ( IOrganizationService service, AttributeMetadata from ) : List
GetValidLanguageCodes ( ) : HashSet
GetViewsWithAttribute ( IOrganizationService service, AttributeMetadata @from ) : List
MigrateAttribute ( AttributeMetadata fromAtt, AttributeMetadata toAtt, System.Action actions ) : void
MigrateToNew ( Steps stepsToPerform, AttributeMetadata tmpAtt, AttributeMetadata newAtt, System.Action actions ) : void
MigrateToTemp ( Steps stepsToPerform, AttributeMetadata oldAtt, AttributeMetadata tmpAtt, System.Action actions ) : void
PerformUpdates ( IOrganizationService service, OrganizationRequestCollection requests ) : void
PublishEntity ( IOrganizationService service, string logicalName ) : void
RemoveExisting ( Steps stepsToPerform, AttributeMetadata oldAtt ) : void
RemoveFieldFromFetchXml ( string xml, string attName ) : string
RemoveInvalidLanguageLocalizedLabels ( Label label ) : void
RemoveParentXmlNodesWithTagValue ( string xml, string parentNodeName, string nodeName, string tagName, string tagValue, string parentNodeEndName = null ) : string
RemoveTemp ( Steps stepsToPerform, AttributeMetadata tmpAtt ) : void
RemoveXmlNodesWithTagValue ( string xml, string nodeName, string tagName, string tagValue ) : string
ReplaceCsvValues ( string value, string from, string to ) : string
ReplaceFetchXmlAttribute ( string xml, string from, string to, bool nameOnly = false ) : string
SetEntityLogicalName ( AttributeMetadata att, string entityLogicalName ) : void
Trace ( string message ) : void
UpdateBusinessProcessFlowClassId ( string xml, AttributeMetadata att, AttributeMetadata to ) : string
UpdateCalculatedFields ( IOrganizationService service, AttributeMetadata from, AttributeMetadata to ) : void
UpdateCharts ( IOrganizationService service, AttributeMetadata att ) : void
UpdateCharts ( IOrganizationService service, AttributeMetadata from, AttributeMetadata to ) : void
UpdateForms ( IOrganizationService service, AttributeMetadata att ) : void
UpdateForms ( IOrganizationService service, AttributeMetadata from, AttributeMetadata to ) : void
UpdateMappings ( IOrganizationService service, AttributeMetadata att ) : void
UpdatePluginStepFilters ( IOrganizationService service, AttributeMetadata att, AttributeMetadata to ) : void
UpdatePluginStepImages ( IOrganizationService service, AttributeMetadata att, AttributeMetadata to ) : void
UpdateRelationships ( IOrganizationService service, AttributeMetadata att ) : void
UpdateViews ( IOrganizationService service, AttributeMetadata att ) : void
UpdateViews ( IOrganizationService service, AttributeMetadata from, AttributeMetadata to ) : void
UpdateWorkflows ( IOrganizationService service, AttributeMetadata att ) : void
UpdateWorkflows ( IOrganizationService service, AttributeMetadata att, AttributeMetadata to ) : void

Method Details

Logic() public method

public Logic ( IOrganizationService service, McTools.Xrm.Connection.ConnectionDetail connectionDetail, EntityMetadata metadata, string tempPostFix, bool migrateData ) : System
service IOrganizationService
connectionDetail McTools.Xrm.Connection.ConnectionDetail
metadata EntityMetadata
tempPostFix string
migrateData bool
return System

Run() public method

public Run ( AttributeMetadata att, string newAttributeSchemaName, Steps stepsToPerform, System.Action actions, AttributeMetadata newAttributeType = null ) : void
att AttributeMetadata
newAttributeSchemaName string
stepsToPerform Steps
actions System.Action
newAttributeType AttributeMetadata
return void