@@ -139,7 +139,7 @@ private static IEnumerable<ContainerProperties> GetContainersToCreate(IModel mod
139
139
defaultTtl ??= entityType . GetDefaultTimeToLive ( ) ;
140
140
throughput ??= entityType . GetThroughput ( ) ;
141
141
142
- ProcessEntityType ( entityType , indexes , vectors , fullTextProperties ) ;
142
+ ProcessEntityType ( entityType , indexes , vectors , fullTextProperties , 0 ) ;
143
143
}
144
144
145
145
yield return new ContainerProperties (
@@ -157,8 +157,10 @@ static void ProcessEntityType(
157
157
IEntityType entityType ,
158
158
List < IIndex > indexes ,
159
159
List < ( IProperty Property , CosmosVectorType VectorType ) > vectors ,
160
- List < ( IProperty Property , string Language ) > fullTextProperties )
160
+ List < ( IProperty Property , string Language ) > fullTextProperties ,
161
+ int i )
161
162
{
163
+ if ( i > 10 ) throw new InvalidOperationException ( "infinite" ) ;
162
164
indexes . AddRange ( entityType . GetIndexes ( ) ) ;
163
165
164
166
foreach ( var property in entityType . GetProperties ( ) )
@@ -175,9 +177,10 @@ static void ProcessEntityType(
175
177
}
176
178
}
177
179
180
+ i = i + 1 ;
178
181
foreach ( var ownedType in entityType . GetNavigations ( ) . Where ( x => x . ForeignKey . IsOwnership ) . Select ( x => x . TargetEntityType ) )
179
182
{
180
- ProcessEntityType ( ownedType , indexes , vectors , fullTextProperties ) ;
183
+ ProcessEntityType ( ownedType , indexes , vectors , fullTextProperties , i ) ;
181
184
}
182
185
}
183
186
}
0 commit comments