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

            FR_L5AA_GARPDfPI_3535 functionReturn = new FR_L5AA_GARPDfPI_3535();

            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_ArticleReference_PreloadingData_for_ProductID", ex);
            }
            return(functionReturn);
        }
        protected static FR_L5AA_GARPDfPI_3535 Execute(DbConnection Connection, DbTransaction Transaction, P_L5AA_GARPDfPI_3535 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null)
        {
            #region UserCode
            var returnValue = new FR_L5AA_GARPDfPI_3535();
            returnValue.Result = new L5AA_GARPDfPI_3535();

            #region ArticleInfo

            var articleQuery = new ORM_CMN_PRO_Product.Query();
            articleQuery.CMN_PRO_ProductID = Parameter.ArticleID;
            articleQuery.Tenant_RefID      = securityTicket.TenantID;
            var articleFound = ORM_CMN_PRO_Product.Query.Search(Connection, Transaction, articleQuery).SingleOrDefault();

            returnValue.Result.PZN         = articleFound.Product_Number;
            returnValue.Result.ArticleName = articleFound.Product_Name;

            #endregion

            #region Standard Prices

            var standardPriceParam = new P_L3PR_GSPfPIL_1645()
            {
                ProductIDList = new Guid[1] {
                    Parameter.ArticleID
                }
            };

            var standardPrice = cls_Get_StandardPrices_for_ProductIDList.Invoke(
                Connection, Transaction, standardPriceParam, securityTicket).Result.SingleOrDefault();

            returnValue.Result.StandardPrices = standardPrice;

            #endregion

            #region Suppliers for Product

            var suppliersParam = new P_L5AA_GPSfPI_1248()
            {
                ProductID = Parameter.ArticleID
            };

            var SupplierProducts = cls_Get_ProductSuppliers_for_ProductID.Invoke(
                Connection, Transaction, suppliersParam, securityTicket).Result;

            returnValue.Result.ProductSuppliers = SupplierProducts;

            #endregion

            #region Predefined DiscountTypes

            var discountTypesParam = new P_L2DT_GDTfGPMIL_1546
            {
                GlobalPropertyMatchingID_List = EnumUtils.GetAllEnumDescriptions <EDiscountType>().ToArray()
            };
            returnValue.Result.DiscountTypes = cls_Get_DiscountTypes_for_GlobalPropertyMatchingID_List.Invoke(
                Connection, Transaction, discountTypesParam, securityTicket).Result;

            #endregion

            return(returnValue);

            #endregion UserCode
        }