Changes in / [c352b2d:333cdac]
- Files:
-
- 4 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/Startup.cs
rc352b2d r333cdac 1 1 using Microsoft.AspNetCore.Builder; 2 2 using Microsoft.AspNetCore.Hosting; 3 using Microsoft.AspNetCore.HttpsPolicy;4 3 using Microsoft.AspNetCore.SpaServices.AngularCli; 5 4 using Microsoft.Extensions.Configuration; … … 30 29 }); 31 30 var connectionString = Configuration.GetSection("ConnectionStrings").GetValue<string>("FarmatikoConnection"); 32 services.AddEntityFrameworkNpgsql().AddDbContext<FarmatikoDataContext>(opt => opt.UseNpgsql(connectionString)); 31 32 services.AddEntityFrameworkNpgsql().AddDbContext<FarmatikoDataContext>(opt => { 33 opt.UseNpgsql(connectionString); 34 }); 33 35 34 36 } -
Farmatiko/appsettings.json
rc352b2d r333cdac 1 1 { 2 2 "ConnectionStrings": { 3 "FarmatikoConnection": " User ID=postgres;Password=@@Farmatiko@@.;database=FarmatikoDb;Integrated Security=true; Pooling=true;"3 "FarmatikoConnection": "Host=localhost;User ID=postgres;Password=Kurwa1337!!;database=FarmatikoDb;Integrated Security=true; Pooling=true;" 4 4 }, 5 5 "Logging": { -
FarmatikoData/Models/HealthFacilities.cs
rc352b2d r333cdac 1 using System;1 using System; 2 2 using System.Collections.Generic; 3 3 using System.ComponentModel.DataAnnotations; 4 4 using System.Text; 5 using FarmatikoData.Base; 5 6 using Microsoft.EntityFrameworkCore; 6 7 7 8 namespace FarmatikoData.Models 8 9 { 9 public class HealthFacilities 10 public class HealthFacilities : BaseEntity 10 11 { 11 12 public HealthFacilities() { } -
FarmatikoData/Models/HealthcareWorkers.cs
rc352b2d r333cdac 3 3 using System.ComponentModel.DataAnnotations; 4 4 using System.Text; 5 using FarmatikoData.Base; 5 6 using Microsoft.EntityFrameworkCore; 6 7 7 8 namespace FarmatikoData.Models 8 9 { 9 public class HealthcareWorkers 10 public class HealthcareWorkers : BaseEntity 10 11 { 11 12 public HealthcareWorkers() { } -
FarmatikoData/Models/Medicine.cs
rc352b2d r333cdac 2 2 using System.Collections.Generic; 3 3 using System.Text; 4 using FarmatikoData.Base; 4 5 using Microsoft.EntityFrameworkCore; 5 6 6 7 namespace FarmatikoData.Models 7 8 { 8 public class Medicine 9 public class Medicine : BaseEntity 9 10 { 10 11 public Medicine() { } -
FarmatikoData/Models/MedicineList.cs
rc352b2d r333cdac 1 1 using System.Collections.Generic; 2 using FarmatikoData.Base; 2 3 using FarmatikoData.Models; 3 4 using Microsoft.EntityFrameworkCore; … … 5 6 namespace FarmatikoData.Models 6 7 { 7 public class MedicineList 8 public class MedicineList : BaseEntity 8 9 { 9 public Medicine Medicine s{ get; set; }10 public Medicine Medicine { get; set; } 10 11 public bool HasMedicine { get; set; } 11 12 public ICollection<Medicine> MedicinesList { get; set; } -
FarmatikoData/Models/Pandemic.cs
rc352b2d r333cdac 2 2 using System.Collections.Generic; 3 3 using System.Text; 4 using FarmatikoData.Base; 4 5 using Microsoft.EntityFrameworkCore; 5 6 6 7 namespace FarmatikoData.Models 7 8 { 8 public class Pandemic 9 public class Pandemic : BaseEntity 9 10 { 10 11 public Pandemic() { } -
FarmatikoData/Models/Pharmacy.cs
rc352b2d r333cdac 1 1 using System; 2 2 using System.Collections.Generic; 3 using System.ComponentModel.DataAnnotations; 3 4 using System.Text; 5 using FarmatikoData.Base; 4 6 using Microsoft.EntityFrameworkCore; 5 7 6 8 namespace FarmatikoData.Models 7 9 { 8 public class Pharmacy 10 public class Pharmacy : BaseEntity 9 11 { 10 12 public Pharmacy() { } 13 [Required] 11 14 public string Name { get; set; } 15 [Required] 12 16 public string Location { get; set; } 17 [Required] 13 18 public string Address { get; set; } 14 19 public bool WorkAllTime { get; set; } -
FarmatikoData/Models/PharmacyHead.cs
rc352b2d r333cdac 2 2 using System.Collections.Generic; 3 3 using System.Text; 4 using FarmatikoData.Base; 4 5 using Microsoft.EntityFrameworkCore; 5 6 6 7 namespace FarmatikoData.Models 7 8 { 8 public class PharmacyHead 9 public class PharmacyHead : BaseEntity 9 10 { 10 11 public MedicineList PharmacyMedicines { get; set; }
Note:
See TracChangeset
for help on using the changeset viewer.