protected override string EntityToTablename(string entity, int tenantId)
        {
            string entityLC = entity.ToLowerInvariant();

            switch (entityLC)
            {
            case "addresstype":
                return(ENAddressTypeEntity.LocalViewName(AppInfo.GetAppInfo().Tenant.Id, BuiltInFunction.GetCurrentLocale()));

            case "address":
                return(ENAddressEntity.LocalViewName(AppInfo.GetAppInfo().Tenant.Id, BuiltInFunction.GetCurrentLocale()));

            case "user":
                return(ENUserEntity.LocalViewName(AppInfo.GetAppInfo().Tenant.Id, BuiltInFunction.GetCurrentLocale()));

            case "country":
                return(ENCountryEntity.LocalViewName(AppInfo.GetAppInfo().Tenant.Id, BuiltInFunction.GetCurrentLocale()));
            }

            throw new DataBaseException("'" + entity + "' found in 'Expand Inline' parameter is an unknown Entity");
        }