@punks/cli 0.1.10 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/commands/entity-add/__test__/dotnet/__snapshots__/render.configuration.spec.ts.snap
CHANGED
|
@@ -18,7 +18,7 @@ namespace namespace.AppUsers.Configuration;
|
|
|
18
18
|
|
|
19
19
|
public static class AppUserConfiguration
|
|
20
20
|
{
|
|
21
|
-
public static IServiceCollection
|
|
21
|
+
public static IServiceCollection AddAppUsers(this IServiceCollection services)
|
|
22
22
|
{
|
|
23
23
|
services
|
|
24
24
|
.AddEntityManager()
|
|
@@ -36,7 +36,7 @@ public static class AppUserConfiguration
|
|
|
36
36
|
return services;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
public static void
|
|
39
|
+
public static void UseAppUsersApi(this IEndpointRouteBuilder app)
|
|
40
40
|
{
|
|
41
41
|
app.UseEntityApi<AppUser, Guid, AppUserDto, AppUserListItemDto, AppUserCreateInput, AppUserUpdateInput,
|
|
42
42
|
AppUserSearchParameters, AppUserSortBy, int, AppUserSearchResultFacets>(new EntityApiOptions
|
package/templates/dotnet/NewEntity/Configuration/<PluralizedEntity>Configuration.cs.template
CHANGED
|
@@ -17,7 +17,7 @@ namespace {{ namespace }}.Configuration;
|
|
|
17
17
|
|
|
18
18
|
public static class {{ entityName }}Configuration
|
|
19
19
|
{
|
|
20
|
-
public static IServiceCollection Add{{
|
|
20
|
+
public static IServiceCollection Add{{ pluralizedEntityName }}(this IServiceCollection services)
|
|
21
21
|
{
|
|
22
22
|
services
|
|
23
23
|
.AddEntityManager()
|
|
@@ -37,7 +37,7 @@ public static class {{ entityName }}Configuration
|
|
|
37
37
|
return services;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
public static void Use{{
|
|
40
|
+
public static void Use{{ pluralizedEntityName }}Api(this IEndpointRouteBuilder app)
|
|
41
41
|
{
|
|
42
42
|
app.UseEntityApi<{{ entityName }}, Guid, {{ entityName }}Dto, {{ entityName }}ListItemDto, {{ entityName }}CreateInput, {{ entityName }}UpdateInput,
|
|
43
43
|
{{ entityName }}SearchParameters, {{ entityName }}SortBy, int, {{ entityName }}SearchResultFacets>(new EntityApiOptions
|