Exemplo n.º 1
0
        public void Seed()
        {

            var account = new Account
            {
                Email = "*****@*****.**",
                Name = "Test Name",
                Password = "******",
            };
            _session.Save(account);
        }
Exemplo n.º 2
0
        public void Seed()
        {

            var account = new Account
            {
                Email = "*****@*****.**",
                Name = "Test Name",
                Password = "******",
            };

            var ligaBbva = _session.QueryOver<Leagues>().Where(x => x.Name == "Liga BBVA").SingleOrDefault();

            account.AddLeagues(ligaBbva);
            

            _session.Save(account);
        }