Revize 8c9ce202
Přidáno uživatelem Vojtěch Bartička před asi 2 roky(ů)
Backend/Core/Contexts/DatabaseContext.cs | ||
---|---|---|
3 | 3 |
using Microsoft.Extensions.Configuration; |
4 | 4 |
using System; |
5 | 5 |
using System.Collections.Generic; |
6 |
using System.ComponentModel.DataAnnotations.Schema; |
|
6 | 7 |
using System.Linq; |
7 | 8 |
using System.Text; |
8 | 9 |
using System.Threading.Tasks; |
... | ... | |
36 | 37 |
optionsBuilder.UseNpgsql(_configuration["ConnectionString"], b => b.MigrationsAssembly("RestAPI")); |
37 | 38 |
//optionsBuilder.UseNpgsql("Host=localhost:5432;Database=dbo;Username=myuser;Password=password"); |
38 | 39 |
} |
40 |
|
|
41 |
protected override void OnModelCreating(ModelBuilder modelBuilder) |
|
42 |
{ |
|
43 |
} |
|
39 | 44 |
} |
40 | 45 |
} |
Také k dispozici: Unified diff
Fixed issues with database OR mapping