I have a function that takes a parameter of string[]. StoreHierarchy has a property named AreaNbr, which is a int.
public Task<IEnumerable<StoreHierarchy>> GetStoreHierarchyByAreas(string[] areas)
{
}
I would like to create the following equivalent query in dotnet core
select * from StoreHierarchy
where AreaNbr in areas // (['13','12'....])
Since the parameter is string[] I would need to convert to an int[]. Is this query possible in either query or method synatx? If possible please provide both so I can compare.