Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions aspnetcore/data/ef-mvc/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ For information on how to deploy a web app, see <xref:host-and-deploy/index>.

For information about other topics related to ASP.NET Core MVC, such as authentication and authorization, see <xref:index>.

[!INCLUDE[](~/includes/reliableWAP.md)]

## Next steps

In this tutorial, you:
Expand Down
8 changes: 7 additions & 1 deletion aspnetcore/data/ef-rp/concurrency.md
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ The browser shows the Index page with the changed value and updated `Concurrency

Delete the test department from the second tab. A concurrency error is display with the current values from the database. Clicking **Delete** deletes the entity, unless `ConcurrencyToken` has been updated.

[!INCLUDE[](~/includes/reliableWAP_H2.md)]

## Additional resources

* [Concurrency Tokens in EF Core](/ef/core/modeling/concurrency)
Expand Down Expand Up @@ -800,6 +802,8 @@ The browser shows the Index page with the changed value and updated rowVersion i

Delete the test department from the second tab. A concurrency error is display with the current values from the database. Clicking **Delete** deletes the entity, unless `RowVersion` has been updated.

[!INCLUDE[](~/includes/reliableWAP.md)]

## Additional resources

* [Concurrency Tokens in EF Core](/ef/core/modeling/concurrency)
Expand Down Expand Up @@ -1100,7 +1104,9 @@ Delete the test department from the second tab. A concurrency error is display w

See [Inheritance](xref:data/ef-mvc/inheritance) on how to inherit a data model.

### Additional resources
[!INCLUDE[](~/includes/reliableWAP_H2.md)]

## Additional resources

* [Concurrency Tokens in EF Core](/ef/core/modeling/concurrency)
* [Handle concurrency in EF Core](/ef/core/saving/concurrency)
Expand Down
2 changes: 2 additions & 0 deletions aspnetcore/fundamentals/servers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ A `launchSettings.json` file provides configuration when launching an app with `

An HTTP/2 connection must use [Application-Layer Protocol Negotiation (ALPN)](https://tools.ietf.org/html/rfc7301#section-3) and TLS 1.2 or later. For more information, see the topics that pertain to your server deployment scenarios.

[!INCLUDE[](~/includes/reliableWAP_H2.md)]

## Additional resources

* <xref:fundamentals/servers/kestrel>
Expand Down
2 changes: 1 addition & 1 deletion aspnetcore/includes/reliableWAP.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
See *The Reliable Web App Pattern for.NET* [YouTube videos](https://www.youtube.com/watch?v=tU2kYzB3noM) and [article](/azure/architecture/reference-architectures/reliable-web-app/dotnet/pattern-overview) for guidance on creating a modern, reliable, performant, testable, cost-efficient, and scalable ASP.NET Core app, whether from scratch or refactoring an existing app.
For guidance on creating a reliable, secure, performant, testable, and scalable ASP.NET Core app, see [Enterprise web app patterns](/azure/architecture/web-apps/guides/enterprise-app-patterns/overview). A complete production-quality sample web app that implements the patterns is available.
2 changes: 1 addition & 1 deletion aspnetcore/includes/reliableWAP_H2.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## Reliable web app patterns
## Enterprise web app patterns

[!INCLUDE[](~/includes/reliableWAP.md)]
2 changes: 2 additions & 0 deletions aspnetcore/security/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ For information on other cloud providers, see:
* [AWS (Amazon Web Services): AWS Key Management Service (KMS)](https://aws.amazon.com/kms/)
* [Google Cloud Key Management Service overview](https://cloud.google.com/kms/docs/key-management-service)

[!INCLUDE[](~/includes/reliableWAP_H2.md)]

## Additional resources

* <xref:security/authentication/identity>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,15 @@ public class Movie
{
public int Id { get; set; }
[StringLength(60, MinimumLength = 3)]
public string Title { get; set; }
public string? Title { get; set; }
[Display(Name = "Release Date"), DataType(DataType.Date)]
public DateTime ReleaseDate { get; set; }
[RegularExpression(@"^[A-Z]+[a-zA-Z\s]*$"), Required, StringLength(30)]
public string Genre { get; set; }
[Range(1, 100), DataType(DataType.Currency)]
[Column(TypeName = "decimal(18, 2)")]
public string? Genre { get; set; }
[Range(1, 100), DataType(DataType.Currency), Column(TypeName = "decimal(18, 2)")]
public decimal Price { get; set; }
[RegularExpression(@"^[A-Z]+[a-zA-Z0-9""'\s-]*$"), StringLength(5)]
public string Rating { get; set; }
public string? Rating { get; set; }
}
// </snippet_AttrOneLine>
#endif
Loading