-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
440 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
.../MediatR.CommandQuery.EntityFrameworkCore.SqlServer.Tests/Data/Entities/SchemaVersions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace MediatR.CommandQuery.EntityFrameworkCore.SqlServer.Tests.Data.Entities | ||
{ | ||
public partial class SchemaVersions | ||
{ | ||
public SchemaVersions() | ||
{ | ||
#region Generated Constructor | ||
#endregion | ||
} | ||
|
||
#region Generated Properties | ||
public int Id { get; set; } | ||
|
||
public string ScriptName { get; set; } | ||
|
||
public DateTime Applied { get; set; } | ||
|
||
#endregion | ||
|
||
#region Generated Relationships | ||
#endregion | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
...ediatR.CommandQuery.EntityFrameworkCore.SqlServer.Tests/Data/Mapping/SchemaVersionsMap.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Microsoft.EntityFrameworkCore; | ||
|
||
namespace MediatR.CommandQuery.EntityFrameworkCore.SqlServer.Tests.Data.Mapping | ||
{ | ||
public partial class SchemaVersionsMap | ||
: IEntityTypeConfiguration<MediatR.CommandQuery.EntityFrameworkCore.SqlServer.Tests.Data.Entities.SchemaVersions> | ||
{ | ||
public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<MediatR.CommandQuery.EntityFrameworkCore.SqlServer.Tests.Data.Entities.SchemaVersions> builder) | ||
{ | ||
#region Generated Configure | ||
// table | ||
builder.ToTable("SchemaVersions", "dbo"); | ||
|
||
// key | ||
builder.HasKey(t => t.Id); | ||
|
||
// properties | ||
builder.Property(t => t.Id) | ||
.IsRequired() | ||
.HasColumnName("Id") | ||
.HasColumnType("int") | ||
.ValueGeneratedOnAdd(); | ||
|
||
builder.Property(t => t.ScriptName) | ||
.IsRequired() | ||
.HasColumnName("ScriptName") | ||
.HasColumnType("nvarchar(255)") | ||
.HasMaxLength(255); | ||
|
||
builder.Property(t => t.Applied) | ||
.IsRequired() | ||
.HasColumnName("Applied") | ||
.HasColumnType("datetime"); | ||
|
||
// relationships | ||
#endregion | ||
} | ||
|
||
#region Generated Constants | ||
public readonly struct Table | ||
{ | ||
public const string Schema = "dbo"; | ||
public const string Name = "SchemaVersions"; | ||
} | ||
|
||
public readonly struct Columns | ||
{ | ||
public const string Id = "Id"; | ||
public const string ScriptName = "ScriptName"; | ||
public const string Applied = "Applied"; | ||
} | ||
#endregion | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.