Example #1
0
        static void Main(string[] args)
        {
            Exception ex1 = new Exception("a", new Exception("b", new Exception("c")));
            Console.WriteLine(GetAllErrMessages(ex1));
            Console.ReadLine();

            var ctx = new Entities();

            IApplicationRepository appRepository = new SRRApplicationRepository(ctx);
            IUserRepository userRepository = new SRRUserRepository(ctx);
            IEntityTagRepository tagRepository = new SRREntityTagRepository(ctx);

            var app1 = appRepository.GetById(9);
            app1.Tags.Add(tagRepository.GetById(5));
            appRepository.Update(app1);
            appRepository.Save();

            Console.WriteLine("dfg");
        }
Example #2
0
        static void Main(string[] args)
        {
            Exception ex1 = new Exception("a", new Exception("b", new Exception("c")));

            Console.WriteLine(GetAllErrMessages(ex1));
            Console.ReadLine();

            var ctx = new Entities();

            IApplicationRepository appRepository  = new SRRApplicationRepository(ctx);
            IUserRepository        userRepository = new SRRUserRepository(ctx);
            IEntityTagRepository   tagRepository  = new SRREntityTagRepository(ctx);


            var app1 = appRepository.GetById(9);

            app1.Tags.Add(tagRepository.GetById(5));
            appRepository.Update(app1);
            appRepository.Save();

            Console.WriteLine("dfg");
        }