private static bool TryGetInt32Key(IReadOnlyKeyValueCollection parameters, out Int32Key key)
        {
            if (parameters.TryGet("Type", out string type) && parameters.TryGet("ID", out int id))
            {
                key = Int32Key.Create(id, type);
                return(true);
            }

            key = null;
            return(false);
        }
Ejemplo n.º 2
0
        public void NotSupportedTypes()
        {
            KeyCollection keys = new KeyCollection(new string[] { "Product", "Category" });

            keys.Add(Int32Key.Create(1, "PriceList"));
        }