This question is related to a previous question of mine
That\'s my current code
IEnumerable Get() { while(//get implementation
One option is to break it up into multiple batches. Create a temporary buffer of Shape objects, iterate until you fill it or run out from the enumerator, then do a InsertBatchOnSubmit.
Shape
InsertBatchOnSubmit