You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
441 B
19 lines
441 B
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace AspNetCoreMVC.Models
|
|
{
|
|
[Table("User")]
|
|
public class User
|
|
{
|
|
[Required]
|
|
public int Id { get; set; }
|
|
|
|
[StringLength(100, MinimumLength = 2)]
|
|
[Required]
|
|
public string Name { get; set; }
|
|
|
|
public string Phone { get; set; }
|
|
public string Address { get; set; }
|
|
}
|
|
}
|
|
|