Create a New ASP.NET Core MVC Web application. Create a New Database in App_Data Folder
WPLTASKDB. Create Three Tables in your Database
Patient -> PatientID (PK), PatientName, Age, DateofAdmission
PatientDetail -> PatientId(PK), DiseaseID(PK)
Disease -> DiseaseID (PK), DiseaseName, Medications, Symptoms
Create Three Controller in your Website, by using Patient Controller your Application should be able
to Add, Update, Delete and View All Patient, by using Disease Controller your Application should be
able to Add, Update, Delete and View All Disease, by using PatientDetail Controller your Application
should be able to Add, Update, Delete and View All PatientDetail.
The Home Page should contain all links of these Views.
1
Expert's answer
2021-01-26T05:33:40-0500
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespaceBlipDrop.Models
{
publicclassCustomer
{
[Key]
[Column(Order = 1)]
public Guid CustomerID { get; set; }
[Required]
[MaxLength(128)]
publicstring CustomerName { get; set; }
[Required]
[MaxLength(3)]
publicstring CountryIso3 { get; set; }
[MaxLength(3)]
publicstring RegionCode { get; set; }
publicvirtual Country Country { get; set; }
publicvirtual Region Region { get; set; }
}
}
Comments