Added TenantId to mapper methods on all affected models
This commit is contained in:
@@ -38,6 +38,7 @@ public static class Mappers
|
||||
public static Activity Map(this Entities.Activity entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
TenantId = entity.TenantId,
|
||||
Amount = entity.Amount,
|
||||
ApprovedBy = entity.ApprovedBy,
|
||||
Category = entity.Category,
|
||||
@@ -56,6 +57,7 @@ public static class Mappers
|
||||
public static AuditLog Map(this Entities.AuditLog entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
TenantId = entity.TenantId,
|
||||
Action = entity.Action,
|
||||
Changes = entity.Changes,
|
||||
EntityId = entity.EntityId,
|
||||
@@ -83,6 +85,7 @@ public static class Mappers
|
||||
public static Beneficiary Map(this Entities.Beneficiary entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
TenantId = entity.TenantId,
|
||||
Category = entity.Category,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
@@ -97,6 +100,7 @@ public static class Mappers
|
||||
public static Budget Map(this Entities.Budget entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
TenantId = entity.TenantId,
|
||||
Amount = entity.Amount,
|
||||
ApprovedBy = entity.ApprovedBy,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
@@ -109,6 +113,7 @@ public static class Mappers
|
||||
public static ComplianceItem Map(this Entities.ComplianceItem entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
TenantId = entity.TenantId,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
ProjectId = entity.ProjectId,
|
||||
@@ -122,6 +127,7 @@ public static class Mappers
|
||||
public static Contract Map(this Entities.Contract entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
TenantId = entity.TenantId,
|
||||
AwardId = entity.AwardId,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
@@ -136,6 +142,7 @@ public static class Mappers
|
||||
public static Disbursement Map(this Entities.Disbursement entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
TenantId = entity.TenantId,
|
||||
Amount = entity.Amount,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
@@ -149,6 +156,7 @@ public static class Mappers
|
||||
public static Evidence Map(this Entities.Evidence entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
TenantId = entity.TenantId,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
DocumentUrl = entity.DocumentUrl,
|
||||
@@ -166,6 +174,7 @@ public static class Mappers
|
||||
public static Indicator Map(this Entities.Indicator entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
TenantId = entity.TenantId,
|
||||
ActualAmount = entity.ActualAmount,
|
||||
BaselineAmount = entity.BaselineAmount,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
@@ -180,6 +189,7 @@ public static class Mappers
|
||||
{
|
||||
Id = entity.Id,
|
||||
Code = entity.Code,
|
||||
TenantId = entity.TenantId,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
Description = entity.Description,
|
||||
@@ -191,6 +201,7 @@ public static class Mappers
|
||||
public static Invite Map(this Entities.Invite entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
TenantId = entity.TenantId,
|
||||
AwardId = entity.AwardId,
|
||||
ContractId = entity.ContractId,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
@@ -205,6 +216,7 @@ public static class Mappers
|
||||
public static Issue Map(this Entities.Issue entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
TenantId = entity.TenantId,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
Description = entity.Description,
|
||||
@@ -220,6 +232,7 @@ public static class Mappers
|
||||
public static Milestone Map(this Entities.Milestone entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
TenantId = entity.TenantId,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
DueAt = entity.DueAt,
|
||||
@@ -233,7 +246,7 @@ public static class Mappers
|
||||
|
||||
public static Organisation Map(this Entities.Organisation entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
Id = entity.Id,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
Email = entity.Email,
|
||||
@@ -246,6 +259,7 @@ public static class Mappers
|
||||
public static Outcome Map(this Entities.Outcome entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
TenantId = entity.TenantId,
|
||||
BeneficiaryId = entity.BeneficiaryId,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
@@ -317,6 +331,7 @@ public static class Mappers
|
||||
public static Risk Map(this Entities.Risk entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
TenantId = entity.TenantId,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
Description = entity.Description,
|
||||
@@ -329,6 +344,7 @@ public static class Mappers
|
||||
public static Rule Map(this Entities.Rule entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
TenantId = entity.TenantId,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
Name = entity.Name,
|
||||
@@ -342,6 +358,7 @@ public static class Mappers
|
||||
public static SiteVisit Map(this Entities.SiteVisit entity) => new()
|
||||
{
|
||||
Id = entity.Id,
|
||||
TenantId = entity.TenantId,
|
||||
ProjectId = entity.ProjectId,
|
||||
CreatedAt = entity.CreatedAt,
|
||||
CreatedBy = entity.CreatedBy,
|
||||
|
||||
Reference in New Issue
Block a user