``` dotnet new mvc --name [projectname] dotnet add package Microsoft.EntityFrameworkCore.SqlServer // to use using Microsoft.EntityFrameworkCore; ``` 1. models - 네임스페이스 projectname.Models - 클래스안에 프로퍼티로 데이터 필드를 정해준다. - 클래스 프로퍼티이름이 ID인 경우, 자동으로 프라이머리 키로 지정된다. - 대괄호[ ]를 사용해 특징을 설정해준다. => using System.ComponentModel.DataAnnotations; >- [Key] >- `[Required]` >- `[EmailAddress]`: Validates if the data is a valid email address. >- `[StringLength(128, MinimumLength = 8)]`: >- `[Display(Name = "Phone Number")]`: Sometimes, you will have properties that are concatenated with two words. You can use the `[Display(Name = "")]` attribute to set its name. Now, your views will display the `PhoneNumber` property as “Phone Number.” >- `[RegularExpression(@"^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$", ErrorMessage = "Not a valid phone number")]`: ```c# using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace notes.Models { public class User { public int ID { get; set; } [EmailAddress] public string email { get; set; } [StringLength(12, MinimumLength = 3)] [Required] public string Username { get; set; } [Required] public string Password { get; set; } } } ``` 2. RESTful routes, strong parameters, auth tokens restful routes를 다루는 컨트롤러는 Controller folder 안에 Api 폴더를 만들어 그 안에 해준다. 2. Async jobs 3. Models and validations 4. No users 5. Use kafka if possible and does not require AWS Problems  dotnet dev-certs https --clean dotnet dev-certs https --trust Cleaning HTTPS development certificates from the machine. This operation might require elevated privileges. If that is the case, a prompt for credentials will be displayed. HTTPS development certificates successfully removed from the machine. Trusting the HTTPS development certificate was requested. If the certificate is not already trusted we will run the following command: 'sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain <>' This command might prompt you for your password to install the certificate on the system keychain. Password: The HTTPS developer certificate was generated successfully.  we have to use actionresult, bc notfound is not a user type.