-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEfCore22ModelSnapshot.cs
More file actions
38 lines (32 loc) · 1.42 KB
/
EfCore22ModelSnapshot.cs
File metadata and controls
38 lines (32 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// EF Core 2.2 Model Snapshot (for the basic Foo entity)
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
namespace CmdScale.EntityFrameworkCore.TimescaleDB.FunctionalTests.Snapshots
{
public class EfCore22ModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
.HasAnnotation("ProductVersion", "2.2.4-servicing-10062")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
modelBuilder.Entity("Microsoft.EntityFrameworkCore.Migrations.MigrationsInfrastructureFixtureBase+Foo", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
b.Property<int>("Bar")
.HasColumnType("integer");
b.Property<string>("Description")
.HasColumnType("text");
b.HasKey("Id");
b.ToTable("Table1");
});
#pragma warning restore 612, 618
}
}
}