Skip to content

Commit ceaa6a5

Browse files
committed
add attribute support to templates
1 parent 303c09f commit ceaa6a5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+156
-240
lines changed

sample/Tracker/Tracker.Core/Data/Mapping/StatusMap.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityType
4545
.IsRequired()
4646
.HasColumnName("DisplayOrder")
4747
.HasColumnType("int")
48-
.HasDefaultValueSql("((0))");
48+
.HasDefaultValue(0);
4949

5050
builder.Property(t => t.IsActive)
5151
.IsRequired()

sample/Tracker/Tracker.Core/Data/Mapping/UserMap.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityType
6464
.IsRequired()
6565
.HasColumnName("AccessFailedCount")
6666
.HasColumnType("int")
67-
.HasDefaultValueSql("((0))");
67+
.HasDefaultValue(0);
6868

6969
builder.Property(t => t.LockoutEnabled)
7070
.IsRequired()

sample/Tracker/Tracker.Core/Data/Queries/AuditExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public static partial class AuditExtensions
3434
/// </summary>
3535
/// <param name="queryable">An <see cref="T:System.Linq.IQueryable`1" /> to filter.</param>
3636
/// <param name="id">The value to filter by.</param>
37+
/// <param name="cancellationToken">A <see cref="System.Threading.CancellationToken" /> to observe while waiting for the task to complete.</param>
3738
/// <returns>An instance of <see cref="T:Tracker.Core.Data.Entities.Audit"/> or null if not found.</returns>
3839
public static async System.Threading.Tasks.ValueTask<Tracker.Core.Data.Entities.Audit?> GetByKeyAsync(this System.Linq.IQueryable<Tracker.Core.Data.Entities.Audit> queryable, Guid id, System.Threading.CancellationToken cancellationToken = default)
3940
{

sample/Tracker/Tracker.Core/Data/Queries/PriorityExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public static partial class PriorityExtensions
3434
/// </summary>
3535
/// <param name="queryable">An <see cref="T:System.Linq.IQueryable`1" /> to filter.</param>
3636
/// <param name="id">The value to filter by.</param>
37+
/// <param name="cancellationToken">A <see cref="System.Threading.CancellationToken" /> to observe while waiting for the task to complete.</param>
3738
/// <returns>An instance of <see cref="T:Tracker.Core.Data.Entities.Priority"/> or null if not found.</returns>
3839
public static async System.Threading.Tasks.ValueTask<Tracker.Core.Data.Entities.Priority?> GetByKeyAsync(this System.Linq.IQueryable<Tracker.Core.Data.Entities.Priority> queryable, Guid id, System.Threading.CancellationToken cancellationToken = default)
3940
{

sample/Tracker/Tracker.Core/Data/Queries/RoleExtensions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public static partial class RoleExtensions
3434
/// </summary>
3535
/// <param name="queryable">An <see cref="T:System.Linq.IQueryable`1" /> to filter.</param>
3636
/// <param name="id">The value to filter by.</param>
37+
/// <param name="cancellationToken">A <see cref="System.Threading.CancellationToken" /> to observe while waiting for the task to complete.</param>
3738
/// <returns>An instance of <see cref="T:Tracker.Core.Data.Entities.Role"/> or null if not found.</returns>
3839
public static async System.Threading.Tasks.ValueTask<Tracker.Core.Data.Entities.Role?> GetByKeyAsync(this System.Linq.IQueryable<Tracker.Core.Data.Entities.Role> queryable, Guid id, System.Threading.CancellationToken cancellationToken = default)
3940
{
@@ -65,6 +66,7 @@ public static partial class RoleExtensions
6566
/// </summary>
6667
/// <param name="queryable">An <see cref="T:System.Linq.IQueryable`1" /> to filter.</param>
6768
/// <param name="name">The value to filter by.</param>
69+
/// <param name="cancellationToken">A <see cref="System.Threading.CancellationToken" /> to observe while waiting for the task to complete.</param>
6870
/// <returns>An instance of <see cref="T:Tracker.Core.Data.Entities.Role"/> or null if not found.</returns>
6971
public static async System.Threading.Tasks.Task<Tracker.Core.Data.Entities.Role?> GetByNameAsync(this System.Linq.IQueryable<Tracker.Core.Data.Entities.Role> queryable, string name, System.Threading.CancellationToken cancellationToken = default)
7072
{

sample/Tracker/Tracker.Core/Data/Queries/StatusExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public static partial class StatusExtensions
3434
/// </summary>
3535
/// <param name="queryable">An <see cref="T:System.Linq.IQueryable`1" /> to filter.</param>
3636
/// <param name="id">The value to filter by.</param>
37+
/// <param name="cancellationToken">A <see cref="System.Threading.CancellationToken" /> to observe while waiting for the task to complete.</param>
3738
/// <returns>An instance of <see cref="T:Tracker.Core.Data.Entities.Status"/> or null if not found.</returns>
3839
public static async System.Threading.Tasks.ValueTask<Tracker.Core.Data.Entities.Status?> GetByKeyAsync(this System.Linq.IQueryable<Tracker.Core.Data.Entities.Status> queryable, Guid id, System.Threading.CancellationToken cancellationToken = default)
3940
{

sample/Tracker/Tracker.Core/Data/Queries/TaskExtendedExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public static partial class TaskExtendedExtensions
3434
/// </summary>
3535
/// <param name="queryable">An <see cref="T:System.Linq.IQueryable`1" /> to filter.</param>
3636
/// <param name="taskId">The value to filter by.</param>
37+
/// <param name="cancellationToken">A <see cref="System.Threading.CancellationToken" /> to observe while waiting for the task to complete.</param>
3738
/// <returns>An instance of <see cref="T:Tracker.Core.Data.Entities.TaskExtended"/> or null if not found.</returns>
3839
public static async System.Threading.Tasks.ValueTask<Tracker.Core.Data.Entities.TaskExtended?> GetByKeyAsync(this System.Linq.IQueryable<Tracker.Core.Data.Entities.TaskExtended> queryable, Guid taskId, System.Threading.CancellationToken cancellationToken = default)
3940
{

sample/Tracker/Tracker.Core/Data/Queries/TaskExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public static partial class TaskExtensions
4848
/// </summary>
4949
/// <param name="queryable">An <see cref="T:System.Linq.IQueryable`1" /> to filter.</param>
5050
/// <param name="id">The value to filter by.</param>
51+
/// <param name="cancellationToken">A <see cref="System.Threading.CancellationToken" /> to observe while waiting for the task to complete.</param>
5152
/// <returns>An instance of <see cref="T:Tracker.Core.Data.Entities.Task"/> or null if not found.</returns>
5253
public static async System.Threading.Tasks.ValueTask<Tracker.Core.Data.Entities.Task?> GetByKeyAsync(this System.Linq.IQueryable<Tracker.Core.Data.Entities.Task> queryable, Guid id, System.Threading.CancellationToken cancellationToken = default)
5354
{

sample/Tracker/Tracker.Core/Data/Queries/TenantExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public static partial class TenantExtensions
3434
/// </summary>
3535
/// <param name="queryable">An <see cref="T:System.Linq.IQueryable`1" /> to filter.</param>
3636
/// <param name="id">The value to filter by.</param>
37+
/// <param name="cancellationToken">A <see cref="System.Threading.CancellationToken" /> to observe while waiting for the task to complete.</param>
3738
/// <returns>An instance of <see cref="T:Tracker.Core.Data.Entities.Tenant"/> or null if not found.</returns>
3839
public static async System.Threading.Tasks.ValueTask<Tracker.Core.Data.Entities.Tenant?> GetByKeyAsync(this System.Linq.IQueryable<Tracker.Core.Data.Entities.Tenant> queryable, Guid id, System.Threading.CancellationToken cancellationToken = default)
3940
{

sample/Tracker/Tracker.Core/Data/Queries/UserExtensions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public static partial class UserExtensions
3131
/// </summary>
3232
/// <param name="queryable">An <see cref="T:System.Linq.IQueryable`1" /> to filter.</param>
3333
/// <param name="emailAddress">The value to filter by.</param>
34+
/// <param name="cancellationToken">A <see cref="System.Threading.CancellationToken" /> to observe while waiting for the task to complete.</param>
3435
/// <returns>An instance of <see cref="T:Tracker.Core.Data.Entities.User"/> or null if not found.</returns>
3536
public static async System.Threading.Tasks.Task<Tracker.Core.Data.Entities.User?> GetByEmailAddressAsync(this System.Linq.IQueryable<Tracker.Core.Data.Entities.User> queryable, string emailAddress, System.Threading.CancellationToken cancellationToken = default)
3637
{
@@ -62,6 +63,7 @@ public static partial class UserExtensions
6263
/// </summary>
6364
/// <param name="queryable">An <see cref="T:System.Linq.IQueryable`1" /> to filter.</param>
6465
/// <param name="id">The value to filter by.</param>
66+
/// <param name="cancellationToken">A <see cref="System.Threading.CancellationToken" /> to observe while waiting for the task to complete.</param>
6567
/// <returns>An instance of <see cref="T:Tracker.Core.Data.Entities.User"/> or null if not found.</returns>
6668
public static async System.Threading.Tasks.ValueTask<Tracker.Core.Data.Entities.User?> GetByKeyAsync(this System.Linq.IQueryable<Tracker.Core.Data.Entities.User> queryable, Guid id, System.Threading.CancellationToken cancellationToken = default)
6769
{

0 commit comments

Comments
 (0)