/// <summary> /// Return all GenreBEs /// </summary> /// <returns></returns> public IEnumerable <GenreBE> GetGenreBEs() { using var context = cRUDTestDBContextProvider.GetContext(); foreach (var id in context.Genre.Select(p => p.GenreId)) { GenreBE genreBE = new GenreBE(cRUDTestDBContextProvider); genreBE.Load(id); yield return(genreBE); } }
public void AssignTo(GenreBE genre) { Entity.GenreId = genre.Id; }