Skip to content

Commit

Permalink
Update all whipstaff dependencies to v6.1.116 (#388)
Browse files Browse the repository at this point in the history
* Update all whipstaff dependencies to v6.1.116

* fix controller names with split of api and mvc

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: David Vreony <dpvreony@users.noreply.github.com>
  • Loading branch information
renovate[bot] and dpvreony committed Aug 31, 2023
1 parent 894f90f commit e81a726
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Expand Up @@ -7,9 +7,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Whipstaff.AspNetCore" Version="6.1.83" />
<PackageReference Include="Whipstaff.Wpf" Version="6.1.83" />
<PackageReference Include="Whipstaff.Wpf.Mahapps" Version="6.1.83" />
<PackageReference Include="Whipstaff.AspNetCore" Version="6.1.120" />
<PackageReference Include="Whipstaff.Wpf" Version="6.1.120" />
<PackageReference Include="Whipstaff.Wpf.Mahapps" Version="6.1.120" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.10" />
</ItemGroup>

Expand Down
Expand Up @@ -50,7 +50,7 @@ protected override IList<string> GetUsings()
protected override string GetBaseClass(IEntityGenerationModel entityGenerationModel)
{
var entityName = entityGenerationModel.ClassName;
return $"global::Whipstaff.AspNetCore.QueryOnlyController<Queries.IList{entityName}Query, RequestDtos.List{entityName}RequestDto, ResponseDtos.List{entityName}ResponseDto, Queries.IView{entityName}Query, ResponseDtos.View{entityName}ResponseDto, LoggerMessageActions.{entityName}LoggerMessageActions>";
return $"global::Whipstaff.AspNetCore.QueryOnlyMvcController<Queries.IList{entityName}Query, RequestDtos.List{entityName}RequestDto, ResponseDtos.List{entityName}ResponseDto, Queries.IView{entityName}Query, ResponseDtos.View{entityName}ResponseDto, LoggerMessageActions.{entityName}LoggerMessageActions>";
}

protected override IEnumerable<string> GetImplementedInterfaces(IEntityGenerationModel entityGenerationModel)
Expand Down Expand Up @@ -113,7 +113,6 @@ protected override string[] GetClassLevelCommentRemarks(string entityName)
{
new Tuple<string, IList<string>>("Microsoft.AspNetCore.Mvc.AutoValidateAntiforgeryToken", null),
new Tuple<string, IList<string>>("Microsoft.AspNetCore.Authorization.Authorize", null),
new Tuple<string, IList<string>>("Microsoft.AspNetCore.Mvc.Route", new[]{ $"\"{entityDeclaration.ClassName}\"" })
};
}

Expand Down
Expand Up @@ -47,7 +47,7 @@ protected override IList<string> GetUsings()
protected override string GetBaseClass(IEntityGenerationModel entityGenerationModel)
{
var entityName = entityGenerationModel.ClassName;
return $"global::Whipstaff.AspNetCore.CrudController<Queries.IList{entityName}Query, RequestDtos.List{entityName}RequestDto, ResponseDtos.List{entityName}ResponseDto, Queries.IView{entityName}Query, ResponseDtos.View{entityName}ResponseDto, Commands.IAdd{entityName}Command, RequestDtos.Add{entityName}RequestDto, ResponseDtos.Add{entityName}ResponseDto, Commands.IDelete{entityName}Command, ResponseDtos.Delete{entityName}ResponseDto, Commands.IUpdate{entityName}Command, RequestDtos.Update{entityName}RequestDto, ResponseDtos.Update{entityName}ResponseDto, LoggerMessageActions.{entityName}LoggerMessageActions>";
return $"global::Whipstaff.AspNetCore.CrudApiController<Queries.IList{entityName}Query, RequestDtos.List{entityName}RequestDto, ResponseDtos.List{entityName}ResponseDto, Queries.IView{entityName}Query, ResponseDtos.View{entityName}ResponseDto, Commands.IAdd{entityName}Command, RequestDtos.Add{entityName}RequestDto, ResponseDtos.Add{entityName}ResponseDto, Commands.IDelete{entityName}Command, ResponseDtos.Delete{entityName}ResponseDto, Commands.IUpdate{entityName}Command, RequestDtos.Update{entityName}RequestDto, ResponseDtos.Update{entityName}ResponseDto, LoggerMessageActions.{entityName}LoggerMessageActions>";
}

protected override IEnumerable<string> GetImplementedInterfaces(IEntityGenerationModel entityGenerationModel)
Expand Down Expand Up @@ -111,7 +111,6 @@ protected override string[] GetClassLevelCommentRemarks(string entityName)
return new List<Tuple<string, IList<string>>>
{
new Tuple<string, IList<string>>("Microsoft.AspNetCore.Authorization.Authorize", null),
new Tuple<string, IList<string>>("Microsoft.AspNetCore.Mvc.Route", new[]{ $"\"api/{entityDeclaration.ClassName.ToLower()}\"" })
};
}

Expand Down

0 comments on commit e81a726

Please sign in to comment.