tables

Jul 3 2015 8:12 AM
hi guys how to make items of another table appear in the view of another table as checkboxes
hear are my two table
 
public class Checklistitems
{
public int itemid{get; set;}
public String itemName{get; set;}
}
table
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Template.Data
{
public class FinalQuoteData:CustomerDB
{
[Key]
// [Display(Name="Qoutation id")]
public int qouteid { get; set; }
public virtual ICollection<PartsData> PartsD { get; set; }
[Display(Name = "Customer ID: ")]
public int id { get; set; }
[ForeignKey("id")]
public virtual CustomerDB CustomerDB { get; set; }
// public int partid { get; set; }
//// [ForeignKey("partid")]
// public virtual PartsData PartsData { get; set; }
public DateTime qoutedate
{
get
{
DateTime now = DateTime.Now;
return now;
}
set { }
}
public String distance { get; set; }
[Display(Name="Around Durban")]
public bool AroundDBn { get; set; }
[Display(Name="10 metres outside Durban")]
public bool TenMetresoutsideDurban { get; set; }
[Display(Name="Out of Durban")]
public bool outofdbnn { get; set; }
//[Display(Name="Static Amount")]
[Display(Name = "Static amount :")]
[Required(ErrorMessage = "Enter Static Amount:")]
[RegularExpression(@"^\$?\d+(\.(\d{2}))?$")]
public decimal staticamount { get; set; }
[Display(Name = "Delivery Amount :")]
//[Display(Name="Delivery Amount")]
public decimal deliveryamount { get; set; }
public String checklist { get; set; }
[Display(Name = "Radio")]
public bool Radio { get; set; }
[Display(Name = "Battery")]
public bool Battery { get; set; }
[Display(Name = "Tow Eye")]
public bool Toweye { get; set; }
[Display(Name = "Aerial")]
public bool Aerial { get; set; }
[Display(Name = "Spare wheel")]
public bool sparewheel { get; set; }
[Display(Name = " Wheel spanner")]
public bool wheelspanner { get; set; }
[Display(Name = " Jack")]
public bool Jack { get; set; }
[Display(Name = " Tools")]
public bool Tools { get; set; }
[Display(Name = " lock nut")]
public bool locknut { get; set; }
[Display(Name = "Hubcaps")]
public bool Hubcaps { get; set; }
[Display(Name = "Mags")]
public bool Mags { get; set; }
[Display(Name = "Remote")]
public bool Remote { get; set; }
[Display(Name = "Keys")]
public bool Keys { get; set; }
[Display(Name = "Loose mats")]
public bool loosemats { get; set; }
[Display(Name = "Speaker board")]
public bool speakerboard { get; set; }
[Display(Name = "amp")]
public bool amp { get; set; }
[Display(Name = "Bluetooth")]
public bool Bluetooth { get; set; }
[Display(Name = "Running board")]
public bool runningboard { get; set; }
[Display(Name = "Bull bar")]
public bool bullbar { get; set; }
[Display(Name = " Tow bar")]
public bool towbar { get; set; }
[Display(Name = "Total Quotation Price :")]
public decimal TotalQuotationPrice { get; set; }
public virtual ICollection<QouteChecklistItemsData> qoutecheckitems { get; set; }
//public int regnum { get; set; }
//[ForeignKey("regnum")]
//public virtual CarData cars { get; set; }
}
}
 
the first table is referenced by the 2nd table using Icollection so guys please I need help.