File tree Expand file tree Collapse file tree
projects/angular-odata/schematics/apigen/angular Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ export class ModelField {
7272 if ( this . edmType instanceof CsdlNavigationProperty ) {
7373 const entity = pkg . findEntity ( this . edmType . Type ) ;
7474 return ` public ${ getterName } () {
75- return this.getAttribute<${ entity ?. importedName ( imports ) } >('${ this . edmType . Name } ') as ${ entity ?. importedName ( imports ) } ;
75+ return this.getAttribute<${ entity ?. importedName ( imports ) } >('${ this . edmType . Name } ') as ${ this . type ( imports ) } ;
7676 }
7777` ;
7878 } else {
@@ -103,7 +103,7 @@ export class ModelField {
103103 if ( this . edmType instanceof CsdlNavigationProperty ) {
104104 const entity = pkg . findEntity ( this . edmType . Type ) ;
105105 return ` public ${ fetchName } (options?: ODataQueryArgumentsOptions<${ entity ?. importedName ( imports ) } >) {
106- return this.fetchAttribute<${ entity ?. importedName ( imports ) } >('${ this . edmType . Name } ', options) as Observable<${ entity ?. importedName ( imports ) } >;
106+ return this.fetchAttribute<${ entity ?. importedName ( imports ) } >('${ this . edmType . Name } ', options) as Observable<${ this . type ( imports ) } >;
107107 }
108108` ;
109109 } else {
You can’t perform that action at this time.
0 commit comments