I have a database that I load with EntityFramework.
In this database there is a table that contains a couple of columns. 2 of those columns are called ZipcodeFrom and ZipcodeTill. The Zipcodes in the table are from different countries, so there is no real standard format.
The problem I have now is the following.
I receive a Zipcode and I need to find the row which contains the Zipcode range associated with the received Zipcode.
I can't use SQL to use the BETWEEN function. So I'm looking for a BETWEEN function for C# if (Zipcode BETWEEN ZipcodeFrom and ZipcodeTill)