Esempio n. 1
0
            private void listCompatibleReviewers()
            {
                //TODO: Implement
                Console.WriteLine("listCompatibleReviewers()");
                Console.WriteLine("(1)Insira ConferenceID");
                int i1 = Convert.ToInt32(Console.ReadLine());

                Console.WriteLine("(1)Insira ArticleID");
                int i2 = Convert.ToInt32(Console.ReadLine());

                using (SI2_T1Entities db = new SI2_T1Entities())
                {
                    var l = db.listCompatibleReviewers(i1, i2).ToList();
                    foreach (var res in l)
                    {
                        Console.WriteLine("Revisores Compativeis: {0}", res.userID);
                    }
                }
            }
Esempio n. 2
0
        static void Main(string[] args)
        {
            bool nb = false;

            if (nb)
            {
                using (SI2_T1Entities db = new SI2_T1Entities())
                {
                    NBench.Bench(() => db.Autor.Where(x => x.userID == 4), "select * from autor where userid=4");                            //21248
                    NBench.Bench(() => db.Conferencia.Where(x => x.ID == 1).Select(u => u.nome), "select nome from conferencia where ID=1"); //10624
                    NBench.Bench(() => db.UpdateNotaConferencia(1, 80), "Update Nota Conferencia");                                          //896
                    NBench.Bench(() => db.listCompatibleReviewers(1, 1), "Compatible Reviewers");                                            //41760
                    string s = Console.ReadLine();
                }
            }
            else
            {
                App.Instance.Run();
            }
        }