Entities mapped to database tables

The following is the ServiceRequest class that will be used to submit the service requests of the tenant:

    [Description("To store Service Requests submitted by Tenants")] 
[Table("ServiceRequest")]
public class ServiceRequest : BaseEntity
{
[Key]
public long ID { get; set; }

public long TenantID { get; set; }
[ForeignKey("TenantID")]
public virtual Tenant Tenant { get; set; }

[MaxLength(1000)]
public string Description { get; set; }

[MaxLength(300)]
public string EmployeeComments { get; set; }

public int StatusID { get; set; }
[ForeignKey("StatusID")]
public virtual Status Status { get; set; }

}

Please refer to the code provided with this book to define more entities.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.60.63