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