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

            FR_L2PR_GPMCLfPMID_1234_Array functionReturn = new FR_L2PR_GPMCLfPMID_1234_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_ProjectMembers_ChargingLevel_for_ProjectMemberIDs", ex);
            }
            return(functionReturn);
        }
 ///<summary>
 /// Opens the connection/transaction for the given connectionString, and closes them when complete
 ///<summary>
 public static FR_L2PR_GPMCLfPMID_1234_Array Invoke(string ConnectionString, P_L2PR_GPMCLfPMID_1234 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null)
 {
     return(Invoke(null, null, ConnectionString, Parameter, securityTicket));
 }
 ///<summary>
 /// Invokes the method for the given Connection, and Transaction, leaving them open/not commited if no exceptions occured
 ///<summary>
 public static FR_L2PR_GPMCLfPMID_1234_Array Invoke(DbConnection Connection, DbTransaction Transaction, P_L2PR_GPMCLfPMID_1234 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null)
 {
     return(Invoke(Connection, Transaction, null, Parameter, securityTicket));
 }
        protected static FR_L2PR_GPMCLfPMID_1234_Array Execute(DbConnection Connection, DbTransaction Transaction, P_L2PR_GPMCLfPMID_1234 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null)
        {
            #region UserCode
            var returnValue = new FR_L2PR_GPMCLfPMID_1234_Array();
            //Put your code here
            List <L2PR_GPMCLfPMID_1234> ProjectMemberTypes = new List <L2PR_GPMCLfPMID_1234>();
            foreach (var ProjectMemberID in Parameter.ProjectMemberIDs)
            {
                L2PR_GPMCLfPMID_1234   ProjectMemberIDAndChargingLevel          = new L2PR_GPMCLfPMID_1234();
                P_L2PR_GPMCLfPMID_1526 ProjectMemberIDAndChargingLevelParameter = new P_L2PR_GPMCLfPMID_1526();
                ProjectMemberIDAndChargingLevelParameter.ProjectMemberID = ProjectMemberID;
                var ChargingLevelForMemberID = cls_Get_ProjectMemberChargingLevel_for_ProjectMemberID.Invoke(Connection, Transaction, ProjectMemberIDAndChargingLevelParameter, securityTicket).Result;
                ProjectMemberIDAndChargingLevel.TMP_PRO_ProjectMember_ID = ProjectMemberID;
                if (ChargingLevelForMemberID != null)
                {
                    ProjectMemberIDAndChargingLevel.CharginglevelID = ChargingLevelForMemberID.ChargingLevel_RefID;
                }
                else
                {
                    ProjectMemberIDAndChargingLevel.CharginglevelID = new Guid();
                }

                ProjectMemberTypes.Add(ProjectMemberIDAndChargingLevel);
            }
            returnValue.Result = ProjectMemberTypes.ToArray();
            return(returnValue);

            #endregion UserCode
        }