Ejemplo n.º 1
0
        void displayResult()
        {
            Cursor = Cursors.WaitCursor;
            using (var db = new DAL.SentimentContext())
            {
                jsontweets = db.Tweets.ToList();
            }

            sentimentReports1.jsontweets = jsontweets;
            sentimentReports1.show();

            Cursor = Cursors.WaitCursor;
        }
Ejemplo n.º 2
0
            protected override void Seed(SentimentContext context)
            {
                Employee emp = new Employee()
                {
                    Email    = "*****@*****.**",
                    Password = "******",

                    person = new Person()
                    {
                        Address   = "Awka",
                        DOB       = "19/2/2010",
                        FirstName = "John",
                        LastName  = "Doe",
                        Gender    = "F"
                    }
                };

                context.Employees.Add(emp);
                context.SaveChanges();

                base.Seed(context);
            }