public override SChannels GetById(object id) { var sChannel = _siriusContext.SChannels.Include("ScsgLink") .Where(x => x.ChannelId == (Int32)id) .First(); return sChannel; }That correctly returns collection of the ScSgLink objects.
public int ChannelId { get; set; } [Display(Name = "descrip", ResourceType = typeof(Labels))] public string Descrip { get; set; } public string CUdf1 { get; set; } public string CUdf2 { get; set; } public bool Hidden { get; set; } //public System.Collections.Generic.ICollection<Siriusware.Models.Max4Sale> Max4Sale { get; set; } public System.Collections.Generic.ICollection<Siriusware.Models.ScsgLink> ScsgLink { get; set; }I need to somehow display the group description in the interface and here I am not sure of the good way to implement it.
public int GroupNo { get; set; } // group_no (Primary key). Primary key public string Descrip { get; set; } // descrip)Thanks in advance.