Changeset 92a1f41
- Timestamp:
- 07/21/20 22:17:54 (4 years ago)
- Branches:
- master
- Children:
- c352b2d
- Parents:
- 0c48bbb
- git-author:
- Mile Jankuloski <mile.jankuloski@…> (07/21/20 22:15:12)
- git-committer:
- Mile Jankuloski <mile.jankuloski@…> (07/21/20 22:17:54)
- Files:
-
- 4 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/Startup.cs
r0c48bbb r92a1f41 1 1 using Microsoft.AspNetCore.Builder; 2 2 using Microsoft.AspNetCore.Hosting; 3 using Microsoft.AspNetCore.HttpsPolicy; 3 4 using Microsoft.AspNetCore.SpaServices.AngularCli; 4 5 using Microsoft.Extensions.Configuration; … … 29 30 }); 30 31 var connectionString = Configuration.GetSection("ConnectionStrings").GetValue<string>("FarmatikoConnection"); 31 32 services.AddEntityFrameworkNpgsql().AddDbContext<FarmatikoDataContext>(opt => { 33 opt.UseNpgsql(connectionString); 34 }); 32 services.AddEntityFrameworkNpgsql().AddDbContext<FarmatikoDataContext>(opt => opt.UseNpgsql(connectionString)); 35 33 36 34 } -
Farmatiko/appsettings.json
r0c48bbb r92a1f41 1 1 { 2 2 "ConnectionStrings": { 3 "FarmatikoConnection": " Host=localhost;User ID=postgres;Password=@@Postgres@@.;database=FarmatikoDb;Integrated Security=true; Pooling=true;"3 "FarmatikoConnection": "User ID=postgres;Password=@@Farmatiko@@.;database=FarmatikoDb;Integrated Security=true; Pooling=true;" 4 4 }, 5 5 "Logging": { -
FarmatikoData/Models/HealthFacilities.cs
r0c48bbb r92a1f41 3 3 using System.ComponentModel.DataAnnotations; 4 4 using System.Text; 5 using FarmatikoData.Base;6 5 using Microsoft.EntityFrameworkCore; 7 6 8 7 namespace FarmatikoData.Models 9 8 { 10 public class HealthFacilities : BaseEntity9 public class HealthFacilities 11 10 { 12 11 public HealthFacilities() { } -
FarmatikoData/Models/HealthcareWorkers.cs
r0c48bbb r92a1f41 3 3 using System.ComponentModel.DataAnnotations; 4 4 using System.Text; 5 using FarmatikoData.Base;6 5 using Microsoft.EntityFrameworkCore; 7 6 8 7 namespace FarmatikoData.Models 9 8 { 10 public class HealthcareWorkers : BaseEntity9 public class HealthcareWorkers 11 10 { 12 11 public HealthcareWorkers() { } -
FarmatikoData/Models/Medicine.cs
r0c48bbb r92a1f41 2 2 using System.Collections.Generic; 3 3 using System.Text; 4 using FarmatikoData.Base;5 4 using Microsoft.EntityFrameworkCore; 6 5 7 6 namespace FarmatikoData.Models 8 7 { 9 public class Medicine : BaseEntity8 public class Medicine 10 9 { 11 10 public Medicine() { } -
FarmatikoData/Models/MedicineList.cs
r0c48bbb r92a1f41 1 1 using System.Collections.Generic; 2 using FarmatikoData.Base;3 2 using FarmatikoData.Models; 4 3 using Microsoft.EntityFrameworkCore; … … 6 5 namespace FarmatikoData.Models 7 6 { 8 public class MedicineList : BaseEntity7 public class MedicineList 9 8 { 10 public Medicine Medicine { get; set; }9 public Medicine Medicines { get; set; } 11 10 public bool HasMedicine { get; set; } 12 11 public ICollection<Medicine> MedicinesList { get; set; } -
FarmatikoData/Models/Pandemic.cs
r0c48bbb r92a1f41 2 2 using System.Collections.Generic; 3 3 using System.Text; 4 using FarmatikoData.Base;5 4 using Microsoft.EntityFrameworkCore; 6 5 7 6 namespace FarmatikoData.Models 8 7 { 9 public class Pandemic : BaseEntity8 public class Pandemic 10 9 { 11 10 public Pandemic() { } -
FarmatikoData/Models/Pharmacy.cs
r0c48bbb r92a1f41 1 1 using System; 2 2 using System.Collections.Generic; 3 using System.ComponentModel.DataAnnotations;4 3 using System.Text; 5 using FarmatikoData.Base;6 4 using Microsoft.EntityFrameworkCore; 7 5 8 6 namespace FarmatikoData.Models 9 7 { 10 public class Pharmacy : BaseEntity8 public class Pharmacy 11 9 { 12 10 public Pharmacy() { } 13 [Required]14 11 public string Name { get; set; } 15 [Required]16 12 public string Location { get; set; } 17 [Required]18 13 public string Address { get; set; } 19 14 public bool WorkAllTime { get; set; } -
FarmatikoData/Models/PharmacyHead.cs
r0c48bbb r92a1f41 2 2 using System.Collections.Generic; 3 3 using System.Text; 4 using FarmatikoData.Base;5 4 using Microsoft.EntityFrameworkCore; 6 5 7 6 namespace FarmatikoData.Models 8 7 { 9 public class PharmacyHead : BaseEntity8 public class PharmacyHead 10 9 { 11 10 public MedicineList PharmacyMedicines { get; set; }
Note:
See TracChangeset
for help on using the changeset viewer.