protected static FR_L2PR_GPMTfPMID_1020_Array Execute(DbConnection Connection, DbTransaction Transaction, P_L2PR_GPMTfPMID_1020 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null)
        {
            #region UserCode
            var returnValue = new FR_L2PR_GPMTfPMID_1020_Array();
            List <L2PR_GPMTfPMID_1020> ProjectMembersAndChargingLevels = new List <L2PR_GPMTfPMID_1020>();
            foreach (var ProjectMemberID in Parameter.ProjectMemberIDs)
            {
                L2PR_GPMTfPMID_1020   projectMemberIDAndType     = new L2PR_GPMTfPMID_1020();
                P_L2PR_GPMTfPMID_1307 ProjectMemberTypeParameter = new P_L2PR_GPMTfPMID_1307();
                ProjectMemberTypeParameter.ProjectMemberID = ProjectMemberID;
                var MemberTypeForMemberID = cls_Get_ProjectMemberType_for_ProjectMemberID.Invoke(Connection, Transaction, ProjectMemberTypeParameter, securityTicket).Result;
                projectMemberIDAndType.TMP_PRO_ProjectMember_ID = ProjectMemberID;
                if (MemberTypeForMemberID != null)
                {
                    projectMemberIDAndType.TMP_PRO_ProjectMember_TypeID = MemberTypeForMemberID.TMP_PRO_ProjectMember_TypeID;
                }
                else
                {
                    projectMemberIDAndType.TMP_PRO_ProjectMember_TypeID = new Guid();
                }

                ProjectMembersAndChargingLevels.Add(projectMemberIDAndType);
            }
            returnValue.Result = ProjectMembersAndChargingLevels.ToArray();
            return(returnValue);

            #endregion UserCode
        }
        ///<summary>
        /// Method Invocation of wrapper classes
        ///<summary>
        protected static FR_L2PR_GPMTfPMID_1020_Array Invoke(DbConnection Connection, DbTransaction Transaction, string ConnectionString, P_L2PR_GPMTfPMID_1020 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null)
        {
            bool cleanupConnection  = Connection == null;
            bool cleanupTransaction = Transaction == null;

            FR_L2PR_GPMTfPMID_1020_Array functionReturn = new FR_L2PR_GPMTfPMID_1020_Array();

            try
            {
                if (cleanupConnection == true)
                {
                    Connection = CSV2Core_MySQL.Support.DBSQLSupport.CreateConnection(ConnectionString);
                    Connection.Open();
                }
                if (cleanupTransaction == true)
                {
                    Transaction = Connection.BeginTransaction();
                }

                functionReturn = Execute(Connection, Transaction, Parameter, securityTicket);

                #region Cleanup Connection/Transaction
                //Commit the transaction
                if (cleanupTransaction == true)
                {
                    Transaction.Commit();
                }
                //Close the connection
                if (cleanupConnection == true)
                {
                    Connection.Close();
                }
                #endregion
            }
            catch (Exception ex)
            {
                try
                {
                    if (cleanupTransaction == true && Transaction != null)
                    {
                        Transaction.Rollback();
                    }
                }
                catch { }

                try
                {
                    if (cleanupConnection == true && Connection != null)
                    {
                        Connection.Close();
                    }
                }
                catch { }

                throw new Exception("Exception occured in method cls_Get_ProjectMemberTypes_for_ProjectMembers_ID", ex);
            }
            return(functionReturn);
        }