Esempio n. 1
0
        public static void Initialize(NerdySoftContext context)
        {
            if (!context.Announcement.Any())
            {
                context.Add(new Announcement()
                {
                    Title       = "Roman Ferents would like to work in NerdySoft!",
                    Description = "Give me an offer and I instantly click with you and we will be friends 0_o!"
                });

                context.SaveChanges();
            }
        }
Esempio n. 2
0
 public BaseRepository(NerdySoftContext context)
 {
     Context  = context;
     Entities = context.Set <TEntity>();
 }