Example #1
0
        static void Main(string[] args)
        {
            HealthyJourneyContext ctx = null;
            ctx = new HealthyJourneyContext();

            Admin c = new Admin { UserName = "******",Password="******",ConfirmPAssword="******",Email="*****@*****.**",IsApproved=false };

            ctx.Users.Add(c);
            ctx.SaveChanges();
        }
Example #2
0
        static void Main(string[] args)
        {
            HealthyJourneyContext ctx = null;
            ctx = new HealthyJourneyContext();

            Badge badge = new Badge { Label="thaer" };

            ctx.Badges.Add(badge);
            ctx.SaveChanges();
        }