I have table in database containing more than 3 thousand rows.
I want to take single column details in string array and I need to send this array to third party api but array length should not be more than 1000.
So I need to send 3/4 different array depending on records
string[] deviceIds = FirebaseNotificationList.Select(x => x.DeviceID).ToArray();
I need to divide string[] deviceIds into different string array of length 1000
If I use below code it will take only first 1000 rows:
string[] deviceIds = FirebaseNotificationList
.Select(x => x.DeviceID).Take(1000).ToArray();
How should I do that without missing any row?