Skip to content

v1.2.0

Compare
Choose a tag to compare
@daviddotcs daviddotcs released this 18 Apr 07:03
· 150 commits to main since this release

Breaking Changes

  • Properties annotated with [FromRoute], [FromQuery], or [BindProperty(SupportsGet = true)] attributes, and properties within a class annotated with [BindProperties(SupportsGet = true)] are now included as parameters in all generated methods for the containing class.

E.g; consider the following razor page model:

public sealed class EditModel : PageModel
{
  [FromRoute]
  public int ProductId { get; set; }

  public void OnGet()
  {
    // ...
  }

  public void OnPost(string name)
  {
    // ...
  }
}

The route-bound ProductId property is added to each of the generated methods, resulting in the following method signatures:

Support.Pages_Edit.GetRouteValues Get(int productId);
Support.Pages_Edit.PostRouteValues Post(string name, int productId);

Full Changelog: v1.1.1...v1.2.0