File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
entity-client/templates/blazor/src/Project.Client
entity-server/templates/dotnetcore/src Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ namespace <%= namespace %>.Client.Models
6767 if (otherEntityNamePascalized === ' User' ) { _% >
6868 public string UserId { get; set; }
6969 < % _ } else { _% >
70- public < %= primaryKeyType _% > < % _ if (primaryKeyType !== ' string' ) { _% > ? < % } _ % > < %= relationshipFieldNamePascalized % > Id { get; set; }
70+ public < %= primaryKeyType _% > < % _ if (primaryKeyType !== ' string' ) { _% > ? < % _ } % > < %= relationshipFieldNamePascalized % > Id { get; set; }
7171 < % _ }
7272 }
7373 if (relationshipType === ' one-to-many' ) { _% >
@@ -79,7 +79,7 @@ namespace <%= namespace %>.Client.Models
7979 if (otherEntityNamePascalized === ' User' ) { _% >
8080 public string UserId { get; set; }
8181 < % _ } else { _% >
82- public < %= primaryKeyType _% > < % _ if (primaryKeyType !== ' string' ) { _% > ? < % } _ % > < %= relationshipFieldNamePascalized % > Id { get; set; }
82+ public < %= primaryKeyType _% > < % _ if (primaryKeyType !== ' string' ) { _% > ? < % _ } % > < %= relationshipFieldNamePascalized % > Id { get; set; }
8383 < % _ }
8484 } else if (relationshipType === ' many-to-many' ) { _% >
8585 public IList<< %= asModel (otherEntityNamePascalized) % >> < %= relationshipFieldNamePascalizedPlural % > { get; set; } = new List << %= asModel (otherEntityNamePascalized) % >> ();
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ namespace <%= namespace %>.Client.Pages.Entities.<%= entityClassName %>
7070 < % _ } else { _% >
7171 public IEnumerable<< %= primaryKeyType % >> < %= relation .otherEntityNamePascalized % > Ids { get; set; } = new List << %= primaryKeyType % >> ();
7272
73- public < %= primaryKeyType _% > < % _ if (primaryKeyType !== ' string' ) { _% > ? < % } _ % > < %= relation .otherEntityNamePascalized % > Id { get; set; }
73+ public < %= primaryKeyType _% > < % _ if (primaryKeyType !== ' string' ) { _% > ? < % _ } % > < %= relation .otherEntityNamePascalized % > Id { get; set; }
7474
7575 < % _ } _% >
7676 < % _ } else if ((relation .relationshipType === ' many-to-many' || relation .relationshipType === ' one-to-many' ) && relation .ownerSide === true ) { _% >
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ namespace <%= namespace %>.Domain
7575 if (otherEntityNamePascalized === ' User' ) { _% >
7676 public string UserId { get; set; }
7777 < % _ } else { _% >
78- public < %= primaryKeyType _% > < % _ if (primaryKeyType !== ' string' ) { _% > ? < % } _ % > < %= relationshipFieldNamePascalized % > Id { get; set; }
78+ public < %= primaryKeyType _% > < % _ if (primaryKeyType !== ' string' ) { _% > ? < % _ } % > < %= relationshipFieldNamePascalized % > Id { get; set; }
7979 < % _ } _% >
8080 public < %= otherEntityNamePascalized % > < %= relationshipFieldNamePascalized % > { get; set; }
8181< % _ }
@@ -88,7 +88,7 @@ namespace <%= namespace %>.Domain
8888 if (otherEntityNamePascalized === ' User' ) { _% >
8989 public string UserId { get; set; }
9090 < % _ } else { _% >
91- public < %= primaryKeyType _% > < % _ if (primaryKeyType !== ' string' ) { _% > ? < % } _ % > < %= relationshipFieldNamePascalized % > Id { get; set; }
91+ public < %= primaryKeyType _% > < % _ if (primaryKeyType !== ' string' ) { _% > ? < % _ } % > < %= relationshipFieldNamePascalized % > Id { get; set; }
9292 < % _ } _% >
9393 public < %= otherEntityNamePascalized % > < %= relationshipFieldNamePascalized % > { get; set; }
9494< % } else if (relationshipType === ' many-to-many' ) {
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ namespace <%= namespace %>.Dto
7777 if (otherEntityNamePascalized === ' User' ) { _% >
7878 public string UserId { get; set; }
7979 < % _ } else { _% >
80- public < %= primaryKeyType _% > < % _ if (primaryKeyType !== ' string' ) { _% > ? < % } _ % > < %= relationshipFieldNamePascalized % > Id { get; set; }
80+ public < %= primaryKeyType _% > < % _ if (primaryKeyType !== ' string' ) { _% > ? < % _ } % > < %= relationshipFieldNamePascalized % > Id { get; set; }
8181 < % _ }
8282 }
8383 if (relationshipType === ' one-to-many' ) { _% >
@@ -89,7 +89,7 @@ namespace <%= namespace %>.Dto
8989 if (otherEntityNamePascalized === ' User' ) { _% >
9090 public string UserId { get; set; }
9191 < % _ } else { _% >
92- public < %= primaryKeyType _% > < % _ if (primaryKeyType !== ' string' ) { _% > ? < % } _ % > < %= relationshipFieldNamePascalized % > Id { get; set; }
92+ public < %= primaryKeyType _% > < % _ if (primaryKeyType !== ' string' ) { _% > ? < % _ } % > < %= relationshipFieldNamePascalized % > Id { get; set; }
9393 < % _ }
9494 } else if (relationshipType === ' many-to-many' ) {
9595 const ownerSide = relationships[idx].ownerSide ; _% >
You can’t perform that action at this time.
0 commit comments