Skip to content

Commit

Permalink
Regenerating files using dotnet t4
Browse files Browse the repository at this point in the history
  • Loading branch information
lerocha committed Feb 4, 2024
1 parent 9a03cfe commit e96bbd5
Show file tree
Hide file tree
Showing 14 changed files with 6,861 additions and 6,861 deletions.
6 changes: 3 additions & 3 deletions ChinookDatabase.Test/DatabaseTests/ChinookDb2Fixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ public void EmployeeLastRecordHasProperInfo(string connectionName)
Assert.Equal("Laura", row["FirstName"].ToString());
Assert.Equal("IT Staff", row["Title"].ToString());
Assert.Equal("6", row["ReportsTo"].ToString());
Assert.Equal(DateTime.Parse("1/9/1968 12:00:00 AM").ToString(), row["BirthDate"].ToString());
Assert.Equal(DateTime.Parse("3/4/2004 12:00:00 AM").ToString(), row["HireDate"].ToString());
Assert.Equal(DateTime.Parse("1/9/1968 12:00:00AM").ToString(), row["BirthDate"].ToString());
Assert.Equal(DateTime.Parse("3/4/2004 12:00:00AM").ToString(), row["HireDate"].ToString());
Assert.Equal("923 7 ST NW", row["Address"].ToString());
Assert.Equal("Lethbridge", row["City"].ToString());
Assert.Equal("AB", row["State"].ToString());
Expand Down Expand Up @@ -369,7 +369,7 @@ public void InvoiceLastRecordHasProperInfo(string connectionName)
// Assert that the last record has the proper information.
Assert.Equal("412", row["InvoiceId"].ToString());
Assert.Equal("58", row["CustomerId"].ToString());
Assert.Equal(DateTime.Parse("12/22/2025 12:00:00 AM").ToString(), row["InvoiceDate"].ToString());
Assert.Equal(DateTime.Parse("12/22/2025 12:00:00AM").ToString(), row["InvoiceDate"].ToString());
Assert.Equal("12,Community Centre", row["BillingAddress"].ToString());
Assert.Equal("Delhi", row["BillingCity"].ToString());
Assert.Equal("", row["BillingState"].ToString());
Expand Down
6 changes: 3 additions & 3 deletions ChinookDatabase.Test/DatabaseTests/ChinookMySqlFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ public void EmployeeLastRecordHasProperInfo(string connectionName)
Assert.Equal("Laura", row["FirstName"].ToString());
Assert.Equal("IT Staff", row["Title"].ToString());
Assert.Equal("6", row["ReportsTo"].ToString());
Assert.Equal(DateTime.Parse("1/9/1968 12:00:00 AM").ToString(), row["BirthDate"].ToString());
Assert.Equal(DateTime.Parse("3/4/2004 12:00:00 AM").ToString(), row["HireDate"].ToString());
Assert.Equal(DateTime.Parse("1/9/1968 12:00:00AM").ToString(), row["BirthDate"].ToString());
Assert.Equal(DateTime.Parse("3/4/2004 12:00:00AM").ToString(), row["HireDate"].ToString());
Assert.Equal("923 7 ST NW", row["Address"].ToString());
Assert.Equal("Lethbridge", row["City"].ToString());
Assert.Equal("AB", row["State"].ToString());
Expand Down Expand Up @@ -387,7 +387,7 @@ public void InvoiceLastRecordHasProperInfo(string connectionName)
// Assert that the last record has the proper information.
Assert.Equal("412", row["InvoiceId"].ToString());
Assert.Equal("58", row["CustomerId"].ToString());
Assert.Equal(DateTime.Parse("12/22/2025 12:00:00 AM").ToString(), row["InvoiceDate"].ToString());
Assert.Equal(DateTime.Parse("12/22/2025 12:00:00AM").ToString(), row["InvoiceDate"].ToString());
Assert.Equal("12,Community Centre", row["BillingAddress"].ToString());
Assert.Equal("Delhi", row["BillingCity"].ToString());
Assert.Equal("", row["BillingState"].ToString());
Expand Down
6 changes: 3 additions & 3 deletions ChinookDatabase.Test/DatabaseTests/ChinookOracleFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ public void EmployeeLastRecordHasProperInfo(string connectionName)
Assert.Equal("Laura", row["FirstName"].ToString());
Assert.Equal("IT Staff", row["Title"].ToString());
Assert.Equal("6", row["ReportsTo"].ToString());
Assert.Equal(DateTime.Parse("1/9/1968 12:00:00 AM").ToString(), row["BirthDate"].ToString());
Assert.Equal(DateTime.Parse("3/4/2004 12:00:00 AM").ToString(), row["HireDate"].ToString());
Assert.Equal(DateTime.Parse("1/9/1968 12:00:00AM").ToString(), row["BirthDate"].ToString());
Assert.Equal(DateTime.Parse("3/4/2004 12:00:00AM").ToString(), row["HireDate"].ToString());
Assert.Equal("923 7 ST NW", row["Address"].ToString());
Assert.Equal("Lethbridge", row["City"].ToString());
Assert.Equal("AB", row["State"].ToString());
Expand Down Expand Up @@ -369,7 +369,7 @@ public void InvoiceLastRecordHasProperInfo(string connectionName)
// Assert that the last record has the proper information.
Assert.Equal("412", row["InvoiceId"].ToString());
Assert.Equal("58", row["CustomerId"].ToString());
Assert.Equal(DateTime.Parse("12/22/2025 12:00:00 AM").ToString(), row["InvoiceDate"].ToString());
Assert.Equal(DateTime.Parse("12/22/2025 12:00:00AM").ToString(), row["InvoiceDate"].ToString());
Assert.Equal("12,Community Centre", row["BillingAddress"].ToString());
Assert.Equal("Delhi", row["BillingCity"].ToString());
Assert.Equal("", row["BillingState"].ToString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ public void EmployeeLastRecordHasProperInfo(string connectionName)
Assert.Equal("Laura", row["first_name"].ToString());
Assert.Equal("IT Staff", row["title"].ToString());
Assert.Equal("6", row["reports_to"].ToString());
Assert.Equal(DateTime.Parse("1/9/1968 12:00:00 AM").ToString(), row["birth_date"].ToString());
Assert.Equal(DateTime.Parse("3/4/2004 12:00:00 AM").ToString(), row["hire_date"].ToString());
Assert.Equal(DateTime.Parse("1/9/1968 12:00:00AM").ToString(), row["birth_date"].ToString());
Assert.Equal(DateTime.Parse("3/4/2004 12:00:00AM").ToString(), row["hire_date"].ToString());
Assert.Equal("923 7 ST NW", row["address"].ToString());
Assert.Equal("Lethbridge", row["city"].ToString());
Assert.Equal("AB", row["state"].ToString());
Expand Down Expand Up @@ -369,7 +369,7 @@ public void InvoiceLastRecordHasProperInfo(string connectionName)
// Assert that the last record has the proper information.
Assert.Equal("412", row["invoice_id"].ToString());
Assert.Equal("58", row["customer_id"].ToString());
Assert.Equal(DateTime.Parse("12/22/2025 12:00:00 AM").ToString(), row["invoice_date"].ToString());
Assert.Equal(DateTime.Parse("12/22/2025 12:00:00AM").ToString(), row["invoice_date"].ToString());
Assert.Equal("12,Community Centre", row["billing_address"].ToString());
Assert.Equal("Delhi", row["billing_city"].ToString());
Assert.Equal("", row["billing_state"].ToString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ public void EmployeeLastRecordHasProperInfo(string connectionName)
Assert.Equal("Laura", row["FirstName"].ToString());
Assert.Equal("IT Staff", row["Title"].ToString());
Assert.Equal("6", row["ReportsTo"].ToString());
Assert.Equal(DateTime.Parse("1/9/1968 12:00:00 AM").ToString(), row["BirthDate"].ToString());
Assert.Equal(DateTime.Parse("3/4/2004 12:00:00 AM").ToString(), row["HireDate"].ToString());
Assert.Equal(DateTime.Parse("1/9/1968 12:00:00AM").ToString(), row["BirthDate"].ToString());
Assert.Equal(DateTime.Parse("3/4/2004 12:00:00AM").ToString(), row["HireDate"].ToString());
Assert.Equal("923 7 ST NW", row["Address"].ToString());
Assert.Equal("Lethbridge", row["City"].ToString());
Assert.Equal("AB", row["State"].ToString());
Expand Down Expand Up @@ -387,7 +387,7 @@ public void InvoiceLastRecordHasProperInfo(string connectionName)
// Assert that the last record has the proper information.
Assert.Equal("412", row["InvoiceId"].ToString());
Assert.Equal("58", row["CustomerId"].ToString());
Assert.Equal(DateTime.Parse("12/22/2025 12:00:00 AM").ToString(), row["InvoiceDate"].ToString());
Assert.Equal(DateTime.Parse("12/22/2025 12:00:00AM").ToString(), row["InvoiceDate"].ToString());
Assert.Equal("12,Community Centre", row["BillingAddress"].ToString());
Assert.Equal("Delhi", row["BillingCity"].ToString());
Assert.Equal("", row["BillingState"].ToString());
Expand Down
6 changes: 3 additions & 3 deletions ChinookDatabase.Test/DatabaseTests/ChinookSqlServerFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ public void EmployeeLastRecordHasProperInfo(string connectionName)
Assert.Equal("Laura", row["FirstName"].ToString());
Assert.Equal("IT Staff", row["Title"].ToString());
Assert.Equal("6", row["ReportsTo"].ToString());
Assert.Equal(DateTime.Parse("1/9/1968 12:00:00 AM").ToString(), row["BirthDate"].ToString());
Assert.Equal(DateTime.Parse("3/4/2004 12:00:00 AM").ToString(), row["HireDate"].ToString());
Assert.Equal(DateTime.Parse("1/9/1968 12:00:00AM").ToString(), row["BirthDate"].ToString());
Assert.Equal(DateTime.Parse("3/4/2004 12:00:00AM").ToString(), row["HireDate"].ToString());
Assert.Equal("923 7 ST NW", row["Address"].ToString());
Assert.Equal("Lethbridge", row["City"].ToString());
Assert.Equal("AB", row["State"].ToString());
Expand Down Expand Up @@ -387,7 +387,7 @@ public void InvoiceLastRecordHasProperInfo(string connectionName)
// Assert that the last record has the proper information.
Assert.Equal("412", row["InvoiceId"].ToString());
Assert.Equal("58", row["CustomerId"].ToString());
Assert.Equal(DateTime.Parse("12/22/2025 12:00:00 AM").ToString(), row["InvoiceDate"].ToString());
Assert.Equal(DateTime.Parse("12/22/2025 12:00:00AM").ToString(), row["InvoiceDate"].ToString());
Assert.Equal("12,Community Centre", row["BillingAddress"].ToString());
Assert.Equal("Delhi", row["BillingCity"].ToString());
Assert.Equal("", row["BillingState"].ToString());
Expand Down
6 changes: 3 additions & 3 deletions ChinookDatabase.Test/DatabaseTests/ChinookSqliteFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ public void EmployeeLastRecordHasProperInfo(string connectionName)
Assert.Equal("Laura", row["FirstName"].ToString());
Assert.Equal("IT Staff", row["Title"].ToString());
Assert.Equal("6", row["ReportsTo"].ToString());
Assert.Equal(DateTime.Parse("1/9/1968 12:00:00 AM").ToString(), row["BirthDate"].ToString());
Assert.Equal(DateTime.Parse("3/4/2004 12:00:00 AM").ToString(), row["HireDate"].ToString());
Assert.Equal(DateTime.Parse("1/9/1968 12:00:00AM").ToString(), row["BirthDate"].ToString());
Assert.Equal(DateTime.Parse("3/4/2004 12:00:00AM").ToString(), row["HireDate"].ToString());
Assert.Equal("923 7 ST NW", row["Address"].ToString());
Assert.Equal("Lethbridge", row["City"].ToString());
Assert.Equal("AB", row["State"].ToString());
Expand Down Expand Up @@ -387,7 +387,7 @@ public void InvoiceLastRecordHasProperInfo(string connectionName)
// Assert that the last record has the proper information.
Assert.Equal("412", row["InvoiceId"].ToString());
Assert.Equal("58", row["CustomerId"].ToString());
Assert.Equal(DateTime.Parse("12/22/2025 12:00:00 AM").ToString(), row["InvoiceDate"].ToString());
Assert.Equal(DateTime.Parse("12/22/2025 12:00:00AM").ToString(), row["InvoiceDate"].ToString());
Assert.Equal("12,Community Centre", row["BillingAddress"].ToString());
Assert.Equal("Delhi", row["BillingCity"].ToString());
Assert.Equal("", row["BillingState"].ToString());
Expand Down
1 change: 0 additions & 1 deletion ChinookDatabase.Test/DatabaseTests/DatabaseFixture.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

namespace ChinookDatabase.Test.DatabaseTests
{
public class DatabaseFixture
Expand Down
1 change: 0 additions & 1 deletion ChinookDatabase/DataSources/ChinookDatabase.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

Chinook Database 1.4.3
* This is a sample database available in multiple formats: SQL scripts for multiple database vendors, embeded database files, and XML format.
* The Chinook data model is available [here|Chinook_Schema].
Expand Down
10 changes: 5 additions & 5 deletions ChinookDatabase/DataSources/CreateDb2.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ if (%ERRORLEVEL%)==(2) goto END
:RUNSQL
echo.
echo Running %SQLFILE%...
db2 disconnect ALL
db2 drop database Chinook
db2 create database Chinook
db2 connect to Chinook
db2 -tf %SQLFILE% -z %SQLFILE%.log
db2 disconnect ALL
db2 drop database Chinook
db2 create database Chinook
db2 connect to Chinook
db2 -tf %SQLFILE% -z %SQLFILE%.log


:END
Expand Down
6 changes: 3 additions & 3 deletions ChinookDatabase/DataSources/CreateOracle.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ if (%ERRORLEVEL%)==(2) goto END
:RUNSQL
echo.
echo Running %SQLFILE%...
chcp 65001
set NLS_LANG=.AL32UTF8
sqlplus -S / as sysdba @ %SQLFILE%
chcp 65001
set NLS_LANG=.AL32UTF8
sqlplus -S / as sysdba @ %SQLFILE%


:END
Expand Down
8 changes: 4 additions & 4 deletions ChinookDatabase/DataSources/CreatePostgreSql.bat
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ if (%ERRORLEVEL%)==(3) goto END
:RUNSQL
echo.
echo Running %SQLFILE%...
SET "PGOPTIONS=-c client_min_messages=WARNING"
dropdb --if-exists -U postgres Chinook
createdb -U postgres Chinook
psql -f %SQLFILE% -q Chinook postgres
SET "PGOPTIONS=-c client_min_messages=WARNING"
dropdb --if-exists -U postgres Chinook
createdb -U postgres Chinook
psql -f %SQLFILE% -q Chinook postgres


:END
Expand Down
1 change: 1 addition & 0 deletions ChinookDatabase/_T4Templates/Chinook.tt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// OS Version: <#= System.Environment.OSVersion #>
// Runtime Version: <#= System.Environment.Version #>
//
// Changes to this file may cause incorrect behavior and will be lost if
Expand Down
Loading

0 comments on commit e96bbd5

Please sign in to comment.