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(); } }
public ApplicationUserStore(LegendNeverDieDbContext context) : base(context) { }
public LegendNeverDieDbContext Init() { return(dbContext ?? (dbContext = new LegendNeverDieDbContext())); }