/// <summary> /// Return all ArtistBEs /// </summary> /// <returns></returns> public IEnumerable <ArtistBE> GetArtistBEs() { using var context = cRUDTestDBContextProvider.GetContext(); foreach (var id in context.Artist.Select(p => p.ArtistId)) { ArtistBE artistBE = new ArtistBE(cRUDTestDBContextProvider); artistBE.Load(id); yield return(artistBE); } }
public void AssignTo(ArtistBE artist) { Entity.ArtistId = artist.Id; }