Add Patch y Cambios en ECustomer
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 4m51s
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 4m51s
This commit is contained in:
parent
5950aef23b
commit
17127d3921
@ -28,7 +28,7 @@ namespace Domain.Entities
|
|||||||
|
|
||||||
public virtual EAccountType? Accounttypes { get; set; }
|
public virtual EAccountType? Accounttypes { get; set; }
|
||||||
|
|
||||||
public virtual ICollection<ECustomerAddress> PhSCustomerAddress { get; set; } = new List<ECustomerAddress>();
|
public virtual ICollection<ECustomerAddress> PhSCustomerAddresses { get; set; } = new List<ECustomerAddress>();
|
||||||
|
|
||||||
public virtual ICollection<ECustomerDocument> PhSCustomerDocuments { get; set; } = new List<ECustomerDocument>();
|
public virtual ICollection<ECustomerDocument> PhSCustomerDocuments { get; set; } = new List<ECustomerDocument>();
|
||||||
|
|
||||||
|
|||||||
@ -10,7 +10,7 @@ namespace Domain.Entities
|
|||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|
||||||
public int? CustomersId { get; set; }
|
public int CustomersId { get; set; }
|
||||||
|
|
||||||
public string? BusinessName { get; set; }
|
public string? BusinessName { get; set; }
|
||||||
|
|
||||||
|
|||||||
@ -7,7 +7,7 @@ public partial class PhSCustomerAddress
|
|||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|
||||||
public int? CustomersId { get; set; }
|
public int CustomersId { get; set; }
|
||||||
|
|
||||||
public string? BusinessName { get; set; }
|
public string? BusinessName { get; set; }
|
||||||
|
|
||||||
@ -33,5 +33,5 @@ public partial class PhSCustomerAddress
|
|||||||
|
|
||||||
public string? Notes { get; set; }
|
public string? Notes { get; set; }
|
||||||
|
|
||||||
public virtual PhSCustomer? Customers { get; set; }
|
public virtual PhSCustomer Customers { get; set; } = null!;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,7 @@
|
|||||||
namespace Models.Models;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace Models.Models;
|
||||||
|
|
||||||
public partial class PhSDocumentType
|
public partial class PhSDocumentType
|
||||||
{
|
{
|
||||||
|
|||||||
@ -46,7 +46,7 @@ public partial class PhronCareOperationsHubContext : DbContext
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
// => optionsBuilder.UseSqlServer("data source=srv01.saludlab.com.ar,39458;initial catalog=phronCare_OperationsHub;User ID=sa;Password=HS|s[~xxQzTo/n>9jO;encrypt=False;trustServerCertificate=True;MultipleActiveResultSets=True");
|
//=> optionsBuilder.UseSqlServer("data source=srv01.saludlab.com.ar,39458;initial catalog=phronCare_OperationsHub;User ID=sa;Password=HS|s[~xxQzTo/n>9jO;encrypt=False;trustServerCertificate=True;MultipleActiveResultSets=True");
|
||||||
|
|
||||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||||
{
|
{
|
||||||
@ -207,6 +207,7 @@ public partial class PhronCareOperationsHubContext : DbContext
|
|||||||
|
|
||||||
entity.HasOne(d => d.Customers).WithMany(p => p.PhSCustomerAddresses)
|
entity.HasOne(d => d.Customers).WithMany(p => p.PhSCustomerAddresses)
|
||||||
.HasForeignKey(d => d.CustomersId)
|
.HasForeignKey(d => d.CustomersId)
|
||||||
|
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||||
.HasConstraintName("FK_PhS_CustomerAddress_PhS_Customers");
|
.HasConstraintName("FK_PhS_CustomerAddress_PhS_Customers");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user