Skip to content

Commit

Permalink
Restore model (dotnet#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
guardrex authored Aug 9, 2023
1 parent 712da76 commit 547f2f8
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 3.1/BlazorSample_Server/ExampleModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System.ComponentModel.DataAnnotations;

public class ExampleModel
{
[Required]
[StringLength(10, ErrorMessage = "Name is too long.")]
public string Name { get; set; }
}
8 changes: 8 additions & 0 deletions 3.1/BlazorSample_WebAssembly/ExampleModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System.ComponentModel.DataAnnotations;

public class ExampleModel
{
[Required]
[StringLength(10, ErrorMessage = "Name is too long.")]
public string Name { get; set; }
}
8 changes: 8 additions & 0 deletions 5.0/BlazorSample_Server/ExampleModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System.ComponentModel.DataAnnotations;

public class ExampleModel
{
[Required]
[StringLength(10, ErrorMessage = "Name is too long.")]
public string Name { get; set; }
}
8 changes: 8 additions & 0 deletions 5.0/BlazorSample_WebAssembly/ExampleModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System.ComponentModel.DataAnnotations;

public class ExampleModel
{
[Required]
[StringLength(10, ErrorMessage = "Name is too long.")]
public string Name { get; set; }
}
8 changes: 8 additions & 0 deletions 6.0/BlazorSample_Server/ExampleModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System.ComponentModel.DataAnnotations;

public class ExampleModel
{
[Required]
[StringLength(10, ErrorMessage = "Name is too long.")]
public string Name { get; set; }
}
8 changes: 8 additions & 0 deletions 6.0/BlazorSample_WebAssembly/ExampleModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System.ComponentModel.DataAnnotations;

public class ExampleModel
{
[Required]
[StringLength(10, ErrorMessage = "Name is too long.")]
public string Name { get; set; }
}
8 changes: 8 additions & 0 deletions 7.0/BlazorSample_Server/ExampleModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System.ComponentModel.DataAnnotations;

public class ExampleModel
{
[Required]
[StringLength(10, ErrorMessage = "Name is too long.")]
public string Name { get; set; }
}
8 changes: 8 additions & 0 deletions 7.0/BlazorSample_WebAssembly/ExampleModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System.ComponentModel.DataAnnotations;

public class ExampleModel
{
[Required]
[StringLength(10, ErrorMessage = "Name is too long.")]
public string Name { get; set; }
}

0 comments on commit 547f2f8

Please sign in to comment.