示例#1
0
 public void LazyLoading()
 {
     using (eJukeboxContext ctx = new eJukeboxContext())
     {
         Data.Models.Gig gig2 = ctx.Gig.SingleOrDefault(x => x.Id == 1);
         Assert.IsTrue(gig2.GigSong.Count > 0);
     }
 }
示例#2
0
 public static Domain.Gig ToDomain(this Data.Models.Gig entity)
 {
     return(new Domain.Gig()
     {
         Id = entity.Id,
         Venue = entity.Venue,
         Date = entity.Date
     });
 }