Skip to content

Add an option to have the name of the generated Method end with "Async" #353

@mrw1sh

Description

@mrw1sh

The name of every method is described with the comment on top of the sql statement

Image

This sql statement will generate the following method:

Image

The generated method will have the async keyword, but the method name is missing "Async" at the end.

It is possible to name the method Async in the sql file.
Image
This does Generate an async method with "Async" in the name.
Image
However, the according structs will also have "Async" in the name.
Image
This poses a conflict on the standard C# naming convention.

My proposed solution would be to have an option in the yaml file the likes of "addAsyncInMethodName" with the default Value being true.
That way the following sql statement
Image
will generate the following structs and methods:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions