In SQL, you can use the following syntax:
SELECT * FROM MY_TABLE WHERE VALUE_1 IN (1, 2, 3)
Is there an equivalent in C#? The IDE seems to
I do something like this:
var shippingAddress = checkoutContext.Addresses.Where(a => (new HashSet { AddressType.SHIPPING_ONLY, AddressType.BILLING_AND_SHIPPING }).Contains(a.AddressType) && a.Id == long.Parse(orderDto.ShippingAddressId)).FirstOrDefault();