Skip to content

Commit e35d620

Browse files
committed
fix local sample
1 parent 2031065 commit e35d620

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

sample/Tracker/Tracker.Core/generation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ project:
55
fileScopedNamespace: true
66
database:
77
provider: SqlServer
8-
connectionString: Data Source=(local);Initial Catalog=Tracker;Integrated Security=True;TrustServerCertificate=True
8+
connectionString: Data Source=(local);Initial Catalog=TrackerGenerator;Integrated Security=True;TrustServerCertificate=True
99
exclude:
1010
tables:
1111
- exact: 'dbo.SchemaVersions'

sample/Tracker/Tracker.Database/Scripts/Script001.Tracker.Schema.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ GO
33

44
-- Database
55
IF NOT EXISTS (SELECT name FROM sys.databases WHERE name = N'Tracker')
6-
CREATE DATABASE [Tracker];
6+
CREATE DATABASE [TrackerGenerator];
77
GO
88

9-
USE [Tracker];
9+
USE [TrackerGenerator];
1010
GO
1111

1212
IF NOT EXISTS (SELECT * FROM sys.schemas WHERE name = N'History')
@@ -92,14 +92,14 @@ CREATE TABLE [dbo].[Task] (
9292
[RowVersion] rowversion NOT NULL,
9393

9494
[PeriodStart] DATETIME2 GENERATED ALWAYS AS ROW START NOT NULL CONSTRAINT [DF_Location_PeriodStart] DEFAULT (SYSUTCDATETIME()),
95-
[PeriodEnd] DATETIME2 GENERATED ALWAYS AS ROW END NOT NULL CONSTRAINT [DF_Location_PeriodEnd] DEFAULT ('9999-12-31 23:59:59.9999999'),
95+
[PeriodEnd] DATETIME2 GENERATED ALWAYS AS ROW END NOT NULL CONSTRAINT [DF_Location_PeriodEnd] DEFAULT ('9999-12-31 23:59:59.9999999'),
9696
PERIOD FOR SYSTEM_TIME ([PeriodStart], [PeriodEnd]),
9797

9898
CONSTRAINT [PK_Task] PRIMARY KEY ([Id]),
9999
)
100-
WITH
100+
WITH
101101
(
102-
SYSTEM_VERSIONING = ON
102+
SYSTEM_VERSIONING = ON
103103
(
104104
HISTORY_TABLE = [History].[Task],
105105
HISTORY_RETENTION_PERIOD = 1 YEARS,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"ConnectionStrings": {
3-
"Tracker": "Data Source=(local);Initial Catalog=Tracker;Integrated Security=True;TrustServerCertificate=True"
3+
"Tracker": "Data Source=(local);Initial Catalog=TrackerGenerator;Integrated Security=True;TrustServerCertificate=True"
44
}
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dotnet ef dbcontext scaffold "Data Source=(local);Initial Catalog=Tracker;Integrated Security=True;TrustServerCertificate=True" Microsoft.EntityFrameworkCore.SqlServer --force
1+
dotnet ef dbcontext scaffold "Data Source=(local);Initial Catalog=TrackerGenerator;Integrated Security=True;TrustServerCertificate=True" Microsoft.EntityFrameworkCore.SqlServer --force

sample/Tracker/Tracker.Web/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
}
66
},
77
"ConnectionStrings": {
8-
"Tracker": "Data Source=(local);Initial Catalog=Tracker;Integrated Security=True;TrustServerCertificate=True"
8+
"Tracker": "Data Source=(local);Initial Catalog=TrackerGenerator;Integrated Security=True;TrustServerCertificate=True"
99
},
1010
"AllowedHosts": "*"
1111
}

0 commit comments

Comments
 (0)