public string ToCsv()
 {
     return(string.Join(",",
                        //AssemblyId.ToString().FormatForCsv(),
                        AssemblyName.FormatForCsv(),
                        //PluginTypeId.ToString().FormatForCsv(),
                        PluginTypeName, StepId.ToString().FormatForCsv(),
                        StepName.FormatForCsv(),
                        FormatForCsv(ImageId),
                        ImageName.FormatForCsv(),
                        Environment.FormatForCsv(),
                        GetStateText(Environment == "Source" ? "target": "source").FormatForCsv(),
                        StepMessageName.FormatForCsv(),
                        EntityName.FormatForCsv(),
                        StepFilteringAttributes.FormatForCsv(),
                        FormatForCsv(RunAsUserId),
                        RunAsUserName.FormatForCsv(),
                        StepRank.ToString().FormatForCsv(),
                        StepDescription.FormatForCsv(),
                        StepStageName.FormatForCsv(),
                        StepModeName.FormatForCsv(),
                        StepSupportedDeploymentName.FormatForCsv(),
                        StepAsyncAutoDelete.ToString(),
                        StepConfiguration.FormatForCsv(),
                        StepSecureConfiguration.FormatForCsv(),
                        ImageAttributes.FormatForCsv()
                        ));
 }