示例#1
0
 private void CreateContactDetailSample(LegendNeverDieDbContext context)
 {
     if (context.ContactDetails.Count() == 0)
     {
         var contactDetail = new LND.Model.Models.ContactDetail();
         {
             contactDetail.Name      = "Legend Never Die";
             contactDetail.Address   = "D3-Đại học bách khoa Hà Nội";
             contactDetail.Email     = "*****@*****.**";
             contactDetail.Website   = "https://hust.edu.vn";
             contactDetail.Latitude  = 21.0051747;
             contactDetail.Longitude = 105.8420479;
         }
         context.ContactDetails.Add(contactDetail);
         context.SaveChanges();
     }
 }
示例#2
0
 public ApplicationUserStore(LegendNeverDieDbContext context)
     : base(context)
 {
 }
示例#3
0
 public LegendNeverDieDbContext Init()
 {
     return(dbContext ?? (dbContext = new LegendNeverDieDbContext()));
 }