Example #1
0
        /// <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);
            }
        }
Example #2
0
 public void AssignTo(ArtistBE artist)
 {
     Entity.ArtistId = artist.Id;
 }