Example #1
0
        static private string BuildAccountsTypeFilter(string[] accountsTypesUIDs)
        {
            if (accountsTypesUIDs.Length == 0)
            {
                return(string.Empty);
            }

            var list = new List <AccountType>();

            foreach (var uid in accountsTypesUIDs)
            {
                var accountType = AccountType.Parse(uid);
                list.Add(accountType);
            }
            string[] idsArray = list.Select(x => x.Id.ToString()).ToArray();

            return($"ID_TIPO_CUENTA IN ({String.Join(", ", idsArray)})");
        }