private static string GetSelectedIds(ulong reportProperty)
        {
            var addedClients    = ReportPropertyValue.FindAll(Expression.Eq("ReportPropertyId", reportProperty));
            var addedClientsIds = new StringBuilder("(0,");

            foreach (var clientId in addedClients)
            {
                addedClientsIds.Append(clientId.Value).Append(',');
            }
            addedClientsIds[addedClientsIds.Length - 1] = ')';
            return(addedClientsIds.ToString());
        }
        public static void DeleteClient(ulong reportProperty, ulong clientCode)
        {
            var properties = ReportPropertyValue.FindAll(
                new[] {
                Expression.Eq("ReportPropertyId", reportProperty),
                Expression.Eq("Value", clientCode.ToString())
            });

            foreach (var property in properties)
            {
                property.DeleteAndFlush();
            }
        }