v1.2.0
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