Changes in / [333cdac:c352b2d]


Ignore:
Files:
4 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/Startup.cs

    r333cdac rc352b2d  
    11using Microsoft.AspNetCore.Builder;
    22using Microsoft.AspNetCore.Hosting;
     3using Microsoft.AspNetCore.HttpsPolicy;
    34using Microsoft.AspNetCore.SpaServices.AngularCli;
    45using Microsoft.Extensions.Configuration;
     
    2930            });
    3031            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));
    3533
    3634        }
  • Farmatiko/appsettings.json

    r333cdac rc352b2d  
    11{
    22  "ConnectionStrings": {
    3     "FarmatikoConnection": "Host=localhost;User ID=postgres;Password=Kurwa1337!!;database=FarmatikoDb;Integrated Security=true; Pooling=true;"
     3    "FarmatikoConnection": "User ID=postgres;Password=@@Farmatiko@@.;database=FarmatikoDb;Integrated Security=true; Pooling=true;"
    44  },
    55  "Logging": {
  • FarmatikoData/Models/HealthFacilities.cs

    r333cdac rc352b2d  
    1     using System;
     1using System;
    22using System.Collections.Generic;
    33using System.ComponentModel.DataAnnotations;
    44using System.Text;
    5 using FarmatikoData.Base;
    65using Microsoft.EntityFrameworkCore;
    76
    87namespace FarmatikoData.Models
    98{
    10     public class HealthFacilities : BaseEntity
     9    public class HealthFacilities
    1110    {
    1211        public HealthFacilities() { }
  • FarmatikoData/Models/HealthcareWorkers.cs

    r333cdac rc352b2d  
    33using System.ComponentModel.DataAnnotations;
    44using System.Text;
    5 using FarmatikoData.Base;
    65using Microsoft.EntityFrameworkCore;
    76
    87namespace FarmatikoData.Models
    98{
    10     public class HealthcareWorkers : BaseEntity
     9    public class HealthcareWorkers
    1110    {
    1211        public HealthcareWorkers() { }
  • FarmatikoData/Models/Medicine.cs

    r333cdac rc352b2d  
    22using System.Collections.Generic;
    33using System.Text;
    4 using FarmatikoData.Base;
    54using Microsoft.EntityFrameworkCore;
    65
    76namespace FarmatikoData.Models
    87{
    9     public class Medicine : BaseEntity
     8    public class Medicine
    109    {
    1110        public Medicine() { }
  • FarmatikoData/Models/MedicineList.cs

    r333cdac rc352b2d  
    11using System.Collections.Generic;
    2 using FarmatikoData.Base;
    32using FarmatikoData.Models;
    43using Microsoft.EntityFrameworkCore;
     
    65namespace FarmatikoData.Models
    76{
    8     public class MedicineList : BaseEntity
     7    public class MedicineList
    98    {
    10         public Medicine Medicine { get; set; }
     9        public Medicine Medicines { get; set; }
    1110        public bool HasMedicine { get; set; }
    1211        public ICollection<Medicine> MedicinesList { get; set; }
  • FarmatikoData/Models/Pandemic.cs

    r333cdac rc352b2d  
    22using System.Collections.Generic;
    33using System.Text;
    4 using FarmatikoData.Base;
    54using Microsoft.EntityFrameworkCore;
    65
    76namespace FarmatikoData.Models
    87{
    9     public class Pandemic : BaseEntity
     8    public class Pandemic
    109    {
    1110        public Pandemic() { }
  • FarmatikoData/Models/Pharmacy.cs

    r333cdac rc352b2d  
    11using System;
    22using System.Collections.Generic;
    3 using System.ComponentModel.DataAnnotations;
    43using System.Text;
    5 using FarmatikoData.Base;
    64using Microsoft.EntityFrameworkCore;
    75
    86namespace FarmatikoData.Models
    97{
    10     public class Pharmacy : BaseEntity
     8    public class Pharmacy
    119    {
    1210        public Pharmacy() { }
    13         [Required]
    1411        public string Name { get; set; }
    15         [Required]
    1612        public string Location { get; set; }
    17         [Required]
    1813        public string Address { get; set; }
    1914        public bool WorkAllTime { get; set; }
  • FarmatikoData/Models/PharmacyHead.cs

    r333cdac rc352b2d  
    22using System.Collections.Generic;
    33using System.Text;
    4 using FarmatikoData.Base;
    54using Microsoft.EntityFrameworkCore;
    65
    76namespace FarmatikoData.Models
    87{
    9     public class PharmacyHead : BaseEntity
     8    public class PharmacyHead
    109    {
    1110        public MedicineList PharmacyMedicines { get; set; }
Note: See TracChangeset for help on using the changeset viewer.