Kayıtlar

2013 tarihine ait yayınlar gösteriliyor

List String Equals

Resim
List String Equals List< DeploymentItemEntity> cmdbDeplomentItemList = cmdbDeplomentItemList.Find(c =>  string .Equals(c.DeploymentItemName, outputName, StringComparison .OrdinalIgnoreCase));

Database Connection

Resim
Database Connection internal class PPMDac : DacBase { public PPMDac() : base () { } internal DataTable GetData( string commandQuery, params OracleParameter [] parameters) { try { using ( OracleCommand oracleCommand = new OracleCommand (commandQuery)) { oracleCommand.CommandType = CommandType .Text; if (parameters != null ) { foreach ( OracleParameter oracleParameter in parameters) { oracleCommand.Parameters.Add(oracleParameter); } } OracleDataAdapter dataAdapter = new OracleDataAdapter (); dataAdapter.SelectCommand = oracleCommand; DataTable dataTable = new DataTable (); ...

Validations

internal void ValidateReleasePlanCompleted() { bool isValid = false ; AddResult( DeploymentItemValidationType .ReleasePlanMustBeCompleted, isValid, ObligationType .Mandatory); }

Check Unmerged Solution Owners

Resim
Check Unmerged Solution Owners internal void CheckUnmergedSolutionOwners( SourceControlBranchEntity parentBranch, SourceControlBranchEntity branch, bool excludeNonReferencedSolutions) { ObligationType obligationType = GetObligationType(branch.SourceControlBranchName); if (branch != null && branch.RootBranchOperationId.GetValueOrDefault() > 0) { parentBranch = SourceControlBranchComponent .GetSourceControlBranchEntity(branch.RootBranchOperationId.Value); var solutions = SolutionComponent .GetSolutionEntityListByBranch(branch.SourceControlBranchOperationId); Dictionary< string , string >; unmergedSolutionOwners = new SourcePackagingService. SourcePackagingServiceClient ().GetUnmergedSolutionOwners( new SourcePackagingService. SourcePackagingParentBranchInput { ParentBranchName = parentBranch == null ? ...

DataTable Culture Info

DataTable deploymentAttendee = new DataTable { Locale = CultureInfo .CurrentUICulture, TableName = "DeploymentAttendee" };

String List Operations

internal static List < string > GetDeleteScriptBranchCommand( SourceControlBranchEntity sourceControlBranchEntity) { string commandString = String .Empty; List < string > commandStringList = new List < string >(); List < SolutionEntity > solutionEntityList = SolutionComponent .GetExistingSolutionEntityListByBranch(sourceControlBranchEntity.SourceControlBranchOperationId); List < string > oldServerName = new List < string >(); foreach ( var solution in solutionEntityList) { if (!oldServerName.Contains(solution.SolutionName)) {                    commandString = SourceControlScriptBranchCommands .GetDeleteScriptBranchCommands(sourceControlBranchEntity.SourceControlBranchName, (( SourceControlTeamProjectType )sourceControlBr...

Preparation Patch Exe

cscript "%~dp0\msg.vbs" " Source ve Database Administration Addin (2010, 2012, 2013) kurulumlari baslayacak. Lutfen acik olan butun Visual Studio uygulamarinizi kapatiniz. " md C:\ProgramData\Microsoft\VisualStudio\12.0\Addins md C:\ProgramData\Microsoft\VisualStudio\11.0\Addins md C:\ProgramData\Microsoft\VisualStudio\10.0\Addins copy "%~dp0AddinSetupFiles.2010.2012.2013\TurkiyeFinans.VSAddIn.VSAddIn2013.dll" "C:\ProgramData\Microsoft\VisualStudio\12.0\Addins\TurkiyeFinans.VSAddIn.VSAddIn2013.dll" copy "%~dp0AddinSetupFiles.2010.2012.2013\TurkiyeFinans.VSAddIn.Commands.dll" "C:\ProgramData\Microsoft\VisualStudio\12.0\Addins\TurkiyeFinans.VSAddIn.Commands.dll"  copy "%~dp0AddinSetupFiles.2010.2012.2013\TurkiyeFinans.VSAddIn.VSAddIn2013.AddIn" "C:\ProgramData\Microsoft\VisualStudio\12.0\Addins\TurkiyeFinans.VSAddIn.VSAddIn2013.AddIn" copy "%~dp0AddinSetupFiles.2010.2012.2013\TurkiyeFinans.VSAddIn...

C# UI Using

Resim
C# UI Using using ( new WaitCursorIndicator( this )) {   foreach ( var solution in solutionEntityList)   {      string str = solution.SolutionType.Trim();      if (!oldServerName.Contains(solution.SolutionName))         {              commandString =  SourceControlScriptBranchCommands .GetUndeleteBranchCommands(sourceControlBranchEntity.SourceControlBranchName, (( SourceControlTeamProjectType )sourceControlBranchEntity.TeamProjectId).ToStringLocalized(), solution.SolutionType.Trim()); commandStringList.Add(commandString);           }  oldServerName.Add(solution.SolutionType.Trim());    } }

Use C# If Debug

Resim
Use C# If Debug using Hero.Core.Configuration; namespace Hero.ReleaseManagement { /// <summary> /// Environment helper methods /// </summary> public static class EnvironmentHelper { /// <summary> /// Determines whether [is debug mode]. /// Use this method instead of DEBUG element at Visual Studio /// </summary> /// <returns></returns> public static bool IsInDebugMode { get { return ConfigurationManager .HasFeature( "ReleaseManagement.DebugMode" ); } } } } if (! EnvironmentHelper .IsInDebugMode) {  ---- }