@@ -1051,7 +1051,7 @@ public static string CreatePackageDefForEntity(this CustomT4Host host)
1051
1051
var importFormat = @"import {0}.{1}.{2};" ;
1052
1052
Dictionary < string , int > uniqueStore = new Dictionary < string , int > ( ) ;
1053
1053
1054
- foreach ( var property in properties . Where ( p => ! p . Projection . Type . Name . Equals ( "Stream" ) ) )
1054
+ foreach ( var property in properties . Where ( p => ! p . Projection . Type . Name . Equals ( "Stream" ) && p . ParentPropertyType == null ) )
1055
1055
{
1056
1056
var propertyType = property . GetTypeString ( ) ;
1057
1057
if ( property . Type is OdcmPrimitiveType )
@@ -1123,7 +1123,7 @@ public static string CreatePackageDefForEntity(this CustomT4Host host)
1123
1123
1124
1124
if ( properties != null )
1125
1125
{
1126
- foreach ( var property in properties . Where ( p => p . IsCollection ( ) && p . IsNavigation ( ) ) )
1126
+ foreach ( var property in properties . Where ( p => p . IsCollection ( ) && p . IsNavigation ( ) && p . ParentPropertyType == null ) )
1127
1127
{
1128
1128
if ( property . Type is OdcmPrimitiveType )
1129
1129
continue ;
@@ -1336,7 +1336,7 @@ public static string UpdatePropertiesWithinSetRawObject(IEnumerable<OdcmProperty
1336
1336
var sb = new StringBuilder ( ) ;
1337
1337
if ( ! isComplexType && properties != null )
1338
1338
{
1339
- foreach ( var property in properties . Where ( p => p . IsCollection ( ) && p . IsNavigation ( ) ) )
1339
+ foreach ( var property in properties . Where ( p => p . IsCollection ( ) && p . IsNavigation ( ) && p . ParentPropertyType == null ) )
1340
1340
{
1341
1341
sb . AppendFormat (
1342
1342
@"
@@ -1429,7 +1429,7 @@ public static string CreatePropertyDef(IEnumerable<OdcmProperty> properties, boo
1429
1429
1430
1430
" ;
1431
1431
1432
- foreach ( var property in properties . Where ( p => ! p . Projection . Type . Name . Equals ( "Stream" ) ) )
1432
+ foreach ( var property in properties . Where ( p => ! p . Projection . Type . Name . Equals ( "Stream" ) && p . ParentPropertyType == null ) )
1433
1433
{
1434
1434
var propertyName = property . Name . ToUpperFirstChar ( ) ;
1435
1435
var propertyType = "" ;
0 commit comments