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

            FR_L5LI_GLIFRP_0953 functionReturn = new FR_L5LI_GLIFRP_0953();

            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 ex;
            }
            return(functionReturn);
        }
        protected static FR_L5LI_GLIFRP_0953 Execute(DbConnection Connection, DbTransaction Transaction, P_L5LI_GLIFRP_0953 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null)
        {
            var returnStatus = new FR_L5LI_GLIFRP_0953();

            DbCommand command = Connection.CreateCommand();

            command.Connection  = Connection;
            command.Transaction = Transaction;
            var commandLocation = "CL5_KPRS_LocationInfo.Atomic.Retrieval.SQL.cls_Get_LocationInformation_For_RealestatePropertyID.sql";

            command.CommandText = new System.IO.StreamReader(System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream(commandLocation)).ReadToEnd();
            CSV2Core_MySQL.Support.DBSQLSupport.SetParameter(command, "ticket", securityTicket);
            command.CommandTimeout = QueryTimeout;
            CSV2Core_MySQL.Support.DBSQLSupport.SetParameter(command, "RealestatePropertyID", Parameter.RealestatePropertyID);


            List <L5LI_GLIFRP_0953> results = new List <L5LI_GLIFRP_0953>();
            var loader = new CSV2Core_MySQL.Dictionaries.MultiTable.Loader.DictionaryLoader(Connection, Transaction);
            var reader = new CSV2Core_MySQL.Support.DBSQLReader(command.ExecuteReader());

            try
            {
                reader.SetOrdinals(new string[] { "Street_Name", "Street_Number", "City_PostalCode", "City_Name", "City_Region", "City_AdministrativeDistrict", "Province_Name", "Country_RefID", "RegionInformation_RegionArea_in_sqkm", "RegionInformation_TotalPopulation", "RegionInformation_Population_per_sqkm", "RegionInformation_RegionUnemploymentRatePercent", "RegionInformation_NumberOfHouseholds_Current", "RegionInformation_NumberOfHouseholds_Forecast", "RegionInformation_PurchasingPowerAmount_Current_RefID", "RegionInformation_PurchasingPowerAmount_Forecast_RefID", "RegionInformation_ResidentialRent_MinPrice_RefID", "RegionInformation_ResidentialRent_AveragePrice_RefID", "RegionInformation_ResidentialRent_MaxPrice_RefID", "RegionInformation_NonResidentialRent_MinPrice_RefID", "RegionInformation_NonResidentialRent_AveragePrice_RefID", "RegionInformation_NonResidentialRent_MaxPrice_RefID", "CMN_LOC_RegionID", "CMN_AddressID", "RES_LOC_LocationInformationID", "CMN_LOC_LocationID" });
                while (reader.Read())
                {
                    L5LI_GLIFRP_0953 resultItem = new L5LI_GLIFRP_0953();
                    //0:Parameter Street_Name of type String
                    resultItem.Street_Name = reader.GetString(0);
                    //1:Parameter Street_Number of type String
                    resultItem.Street_Number = reader.GetString(1);
                    //2:Parameter City_PostalCode of type String
                    resultItem.City_PostalCode = reader.GetString(2);
                    //3:Parameter City_Name of type String
                    resultItem.City_Name = reader.GetString(3);
                    //4:Parameter City_Region of type String
                    resultItem.City_Region = reader.GetString(4);
                    //5:Parameter City_AdministrativeDistrict of type String
                    resultItem.City_AdministrativeDistrict = reader.GetString(5);
                    //6:Parameter Province_Name of type String
                    resultItem.Province_Name = reader.GetString(6);
                    //7:Parameter Country_RefID of type Guid
                    resultItem.Country_RefID = reader.GetGuid(7);
                    //8:Parameter RegionInformation_RegionArea_in_sqkm of type Double
                    resultItem.RegionInformation_RegionArea_in_sqkm = reader.GetDouble(8);
                    //9:Parameter RegionInformation_TotalPopulation of type int
                    resultItem.RegionInformation_TotalPopulation = reader.GetInteger(9);
                    //10:Parameter RegionInformation_Population_per_sqkm of type Double
                    resultItem.RegionInformation_Population_per_sqkm = reader.GetDouble(10);
                    //11:Parameter RegionInformation_RegionUnemploymentRatePercent of type Double
                    resultItem.RegionInformation_RegionUnemploymentRatePercent = reader.GetDouble(11);
                    //12:Parameter RegionInformation_NumberOfHouseholds_Current of type int
                    resultItem.RegionInformation_NumberOfHouseholds_Current = reader.GetInteger(12);
                    //13:Parameter RegionInformation_NumberOfHouseholds_Forecast of type int
                    resultItem.RegionInformation_NumberOfHouseholds_Forecast = reader.GetInteger(13);
                    //14:Parameter RegionInformation_PurchasingPowerAmount_Current_RefID of type Guid
                    resultItem.RegionInformation_PurchasingPowerAmount_Current_RefID = reader.GetGuid(14);
                    //15:Parameter RegionInformation_PurchasingPowerAmount_Forecast_RefID of type Guid
                    resultItem.RegionInformation_PurchasingPowerAmount_Forecast_RefID = reader.GetGuid(15);
                    //16:Parameter RegionInformation_ResidentialRent_MinPrice_RefID of type Guid
                    resultItem.RegionInformation_ResidentialRent_MinPrice_RefID = reader.GetGuid(16);
                    //17:Parameter RegionInformation_ResidentialRent_AveragePrice_RefID of type Guid
                    resultItem.RegionInformation_ResidentialRent_AveragePrice_RefID = reader.GetGuid(17);
                    //18:Parameter RegionInformation_ResidentialRent_MaxPrice_RefID of type Guid
                    resultItem.RegionInformation_ResidentialRent_MaxPrice_RefID = reader.GetGuid(18);
                    //19:Parameter RegionInformation_NonResidentialRent_MinPrice_RefID of type Guid
                    resultItem.RegionInformation_NonResidentialRent_MinPrice_RefID = reader.GetGuid(19);
                    //20:Parameter RegionInformation_NonResidentialRent_AveragePrice_RefID of type Guid
                    resultItem.RegionInformation_NonResidentialRent_AveragePrice_RefID = reader.GetGuid(20);
                    //21:Parameter RegionInformation_NonResidentialRent_MaxPrice_RefID of type Guid
                    resultItem.RegionInformation_NonResidentialRent_MaxPrice_RefID = reader.GetGuid(21);
                    //22:Parameter CMN_LOC_RegionID of type Guid
                    resultItem.CMN_LOC_RegionID = reader.GetGuid(22);
                    //23:Parameter CMN_AddressID of type Guid
                    resultItem.CMN_AddressID = reader.GetGuid(23);
                    //24:Parameter RES_LOC_LocationInformationID of type Guid
                    resultItem.RES_LOC_LocationInformationID = reader.GetGuid(24);
                    //25:Parameter CMN_LOC_LocationID of type Guid
                    resultItem.CMN_LOC_LocationID = reader.GetGuid(25);

                    results.Add(resultItem);
                }
            }
            catch (Exception ex)
            {
                reader.Close();
                throw ex;
            }
            reader.Close();
            //Load all the dictionaries from the datatables
            loader.Load();

            returnStatus.Result = results.FirstOrDefault();
            return(returnStatus);
        }