-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
a6d07dc
commit 95785c5
Showing
10 changed files
with
75 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ namespace IdentityService.Application.Features.AddAzureInfo | |
internal class AddAzureInfoCommand | ||
{ | ||
} | ||
} | ||
} |
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
3 changes: 2 additions & 1 deletion
3
...ion/Feature/OrganizationAction/Commands/AddOrganizationList/AddOrganizationListCommand.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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Collections.ObjectModel; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using TimeLogService.Domain.Models.Dbo; | ||
|
||
namespace TimeLogService.Application.Feature.OrganizationAction.Commands.AddOrganizationList; | ||
|
||
public record class AddOrganizationListCommand(List<Organization> Organizations) : IRequest; | ||
public record class AddOrganizationListCommand(ReadOnlyCollection<Organization> Organizations) : IRequest; |
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
26 changes: 26 additions & 0 deletions
26
src/TimeLogService/TimeLogService.Domain/Models/Partials/User.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,26 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace TimeLogService.Domain.Models.Dbo; | ||
|
||
public partial class User | ||
{ | ||
public User( | ||
string userId, | ||
string emailAddress, | ||
string publicAlias, | ||
int coreRevision, | ||
DateTime timeStamp, | ||
int revision) | ||
{ | ||
UserId = userId; | ||
EmailAddress = emailAddress; | ||
PublicAlias = publicAlias; | ||
CoreRevision = coreRevision; | ||
TimeStamp = timeStamp; | ||
Revision = revision; | ||
} | ||
} |
32 changes: 15 additions & 17 deletions
32
...Service/TimeLogService.Infrastructure/AionTimeContext/Configurations/UserConfiguration.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 |
---|---|---|
@@ -1,24 +1,22 @@ | ||
| ||
namespace TimeLogService.Infrastructure.AionTimeContext.Configurations | ||
namespace TimeLogService.Infrastructure.AionTimeContext.Configurations; | ||
|
||
public partial class UserConfiguration : IEntityTypeConfiguration<User> | ||
{ | ||
public partial class UserConfiguration : IEntityTypeConfiguration<User> | ||
public void Configure(EntityTypeBuilder<User> builder) | ||
{ | ||
public void Configure(EntityTypeBuilder<User> builder) | ||
{ | ||
_ = builder.ToTable("User"); | ||
|
||
_ = builder.HasIndex(e => e.UserId, "IX_User_UserId").IsUnique(); | ||
_ = builder.ToTable("User"); | ||
|
||
_ = builder.Property(e => e.EmailAddress) | ||
.HasMaxLength(50) | ||
.IsUnicode(false); | ||
_ = builder.Property(e => e.PublicAlias).HasMaxLength(100); | ||
_ = builder.Property(e => e.TimeStamp).HasColumnType("datetime"); | ||
_ = builder.Property(e => e.UserId).HasMaxLength(100); | ||
_ = builder.HasIndex(e => e.UserId, "IX_User_UserId").IsUnique(); | ||
|
||
OnConfigurePartial(builder); | ||
} | ||
_ = builder.Property(e => e.EmailAddress) | ||
.HasMaxLength(50) | ||
.IsUnicode(false); | ||
_ = builder.Property(e => e.PublicAlias).HasMaxLength(100); | ||
_ = builder.Property(e => e.TimeStamp).HasColumnType("datetime"); | ||
_ = builder.Property(e => e.UserId).HasMaxLength(100); | ||
|
||
partial void OnConfigurePartial(EntityTypeBuilder<User> entity); | ||
OnConfigurePartial(builder); | ||
} | ||
|
||
partial void OnConfigurePartial(EntityTypeBuilder<User> entity); | ||
} |
30 changes: 14 additions & 16 deletions
30
...ice/TimeLogService.Infrastructure/AionTimeContext/Configurations/WorkItemConfiguration.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 |
---|---|---|
@@ -1,23 +1,21 @@ | ||
| ||
namespace TimeLogService.Infrastructure.AionTimeContext.Configurations | ||
namespace TimeLogService.Infrastructure.AionTimeContext.Configurations; | ||
|
||
public partial class WorkItemConfiguration : IEntityTypeConfiguration<WorkItem> | ||
{ | ||
public partial class WorkItemConfiguration : IEntityTypeConfiguration<WorkItem> | ||
public void Configure(EntityTypeBuilder<WorkItem> builder) | ||
{ | ||
public void Configure(EntityTypeBuilder<WorkItem> builder) | ||
{ | ||
_ = builder.ToTable("WorkItem"); | ||
|
||
_ = builder.Property(e => e.Discription) | ||
.HasMaxLength(1000) | ||
.IsUnicode(false); | ||
_ = builder.ToTable("WorkItem"); | ||
|
||
_ = builder.HasOne(d => d.Project).WithMany(p => p.WorkItems) | ||
.HasForeignKey(d => d.ProjectId) | ||
.HasConstraintName("FKProjectTicket"); | ||
_ = builder.Property(e => e.Discription) | ||
.HasMaxLength(1000) | ||
.IsUnicode(false); | ||
|
||
OnConfigurePartial(builder); | ||
} | ||
_ = builder.HasOne(d => d.Project).WithMany(p => p.WorkItems) | ||
.HasForeignKey(d => d.ProjectId) | ||
.HasConstraintName("FKProjectTicket"); | ||
|
||
partial void OnConfigurePartial(EntityTypeBuilder<WorkItem> entity); | ||
OnConfigurePartial(builder); | ||
} | ||
|
||
partial void OnConfigurePartial(EntityTypeBuilder<WorkItem> entity); | ||
} |
5 changes: 4 additions & 1 deletion
5
...LogService/TimeLogService.Infrastructure/AionTimeContext/TimeLogServiceDataBaseContext.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
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