Exemplo n.º 1
0
        public void SeedData(SrIndiaContext context)
        {
            //context.Users.Add(new AppUser { Email = "b2", FirstName = "Tim12", Password = "******"});

            //context.Messages.Add(new Message
            //{
            //    Owner = "John",
            //    Text = "hello",
            //    CatId = 1,
            //    Type = 1,
            //    ImgId = new Guid().ToString(),
            //    UserId = "22c328d9-6dd3-404d-8a02-d4f9f4dd9022"
            //});
            //context.Messages.Add(new Message
            //{
            //    Owner = "Tim",
            //    Text = "Hi",
            //    CatId = 1,
            //    Type = 1,
            //    ImgId = new Guid().ToString(),
            //    UserId = "22c328d9-6dd3-404d-8a02-d4f9f4dd9022"
            //});

            //context.MessageReply.Add(new MessageReply
            //{
            //    Owner = "Tim",
            //    Text = "Hi",
            //    MessageId = "26e6e895-a221-416f-8032-5404f2be0e1a",
            //    ReplyNumber = "14294b1c-ec30-4e60-aded-9b48aceec254",
            //    ReplyUserId = "22c328d9-6dd3-404d-8a02-d4f9f4dd9022",
            //    ImgId = new Guid().ToString()
            //});

            //context.MessageReply.Add(new MessageReply
            //{
            //    Owner = "Tim",
            //    Text = "Hi",
            //    MessageId = "26e6e895-a221-416f-8032-5404f2be0e1a",
            //    ReplyUserId = "22c328d9-6dd3-404d-8a02-d4f9f4dd9022",
            //    ImgId = new Guid().ToString()
            //});

            context.SaveChanges();
        }
Exemplo n.º 2
0
 public MessageInfoRepository(SrIndiaContext context)
 {
     _context = context;
 }
Exemplo n.º 3
0
 public UserInfoRepository(SrIndiaContext context)
 {
     _context = context;
 }