//public IQueryable<SiteDetailMore> GetAll()
        //{
        //    return DB.ContractorContactDetails;
        //}

        public SiteDetailMore Add(int siteDetailID)
        {
            //var siteDetailRepo = new SiteDetailRepository() { DB = DB };
            //var siteDetail = siteDetailRepo.Get(siteDetailID);

            var siteDetailMore = new SiteDetailMore()
            {
                SiteDetailID = siteDetailID
            };

            //contractorContact.ContractorContactDetails.Add(contractorContactDetail);
            DB.SiteDetailMores.AddObject(siteDetailMore);
            Save();
            return(siteDetailMore);
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the SiteDetailMores EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSiteDetailMores(SiteDetailMore siteDetailMore)
 {
     base.AddObject("SiteDetailMores", siteDetailMore);
 }
 /// <summary>
 /// Create a new SiteDetailMore object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 public static SiteDetailMore CreateSiteDetailMore(global::System.Int32 id)
 {
     SiteDetailMore siteDetailMore = new SiteDetailMore();
     siteDetailMore.ID = id;
     return siteDetailMore;
 }