Changeset f33b0d4


Ignore:
Timestamp:
07/20/20 18:58:23 (4 years ago)
Author:
DimitarSlezenkovski <dslezenkovski@…>
Branches:
master
Children:
0c48bbb
Parents:
171f106
Message:

Add migration and DeletedOn property

Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/Startup.cs

    r171f106 rf33b0d4  
    2929            });
    3030            var connectionString = Configuration.GetSection("ConnectionStrings").GetValue<string>("FarmatikoConnection");
    31             services.AddEntityFrameworkNpgsql().AddDbContext<FarmatikoDataContext>(opt => opt.UseNpgsql(connectionString));
     31
     32            services.AddEntityFrameworkNpgsql().AddDbContext<FarmatikoDataContext>(opt => {
     33                opt.UseNpgsql(connectionString);
     34            });
    3235
    3336        }
  • Farmatiko/appsettings.json

    r171f106 rf33b0d4  
    11{
    22  "ConnectionStrings": {
    3     "FarmatikoConnection": "User ID=postgres;Password=@@Farmatiko@@.;database=FarmatikoDb;Integrated Security=true; Pooling=true;"
     3    "FarmatikoConnection": "Host=localhost;User ID=postgres;Password=@@Postgres@@.;database=FarmatikoDb;Integrated Security=true; Pooling=true;"
    44  },
    55  "Logging": {
  • FarmatikoData/Base/BaseEntity.cs

    r171f106 rf33b0d4  
    99        public int Id { get; set; }
    1010        public DateTime CreatedOn { get; set; }
     11        public DateTime DeletedOn { get; set; }
    1112    }
    1213}
Note: See TracChangeset for help on using the changeset viewer.