Browse Source

Removed cascade relationships from autoentities

Kenric Nugteren 2 years ago
parent
commit
7efd01294a

+ 0 - 2
prs.classes/Entities/Employee/EmployeeActivity.cs

@@ -38,10 +38,8 @@ namespace Comal.Classes
     public class EmployeeActivity : Entity, IRemotable, IPersistent, IEmployeeActivity,
     public class EmployeeActivity : Entity, IRemotable, IPersistent, IEmployeeActivity,
         ILicense<CoreLicense>
         ILicense<CoreLicense>
     {
     {
-        [EntityRelationship(DeleteAction.Cascade)]
         public EmployeeLink Employee { get; set; }
         public EmployeeLink Employee { get; set; }
 
 
-        [EntityRelationship(DeleteAction.Cascade)]
         public ActivityLink Activity { get; set; }
         public ActivityLink Activity { get; set; }
 
 
         protected override void Init()
         protected override void Init()

+ 0 - 2
prs.classes/Entities/Employee/EmployeeDigitalForm.cs

@@ -38,10 +38,8 @@ namespace Comal.Classes
     public class EmployeeDigitalForm : Entity, IRemotable, IPersistent, IEmployeeDigitalForm,
     public class EmployeeDigitalForm : Entity, IRemotable, IPersistent, IEmployeeDigitalForm,
         ILicense<CoreLicense>
         ILicense<CoreLicense>
     {
     {
-        [EntityRelationship(DeleteAction.Cascade)]
         public EmployeeLink Employee { get; set; }
         public EmployeeLink Employee { get; set; }
 
 
-        [EntityRelationship(DeleteAction.Cascade)]
         public DigitalFormLink Form { get; set; }
         public DigitalFormLink Form { get; set; }
 
 
         protected override void Init()
         protected override void Init()

+ 0 - 2
prs.classes/Entities/Job/JobActivity.cs

@@ -93,11 +93,9 @@ namespace Comal.Classes
     public class JobActivitySummary : Entity, IRemotable, IPersistent, IJobActivity, IOneToMany<Job>
     public class JobActivitySummary : Entity, IRemotable, IPersistent, IJobActivity, IOneToMany<Job>
     {
     {
         [NullEditor]
         [NullEditor]
-        [EntityRelationship(DeleteAction.Cascade)]
         public JobLink JobLink { get; set; }
         public JobLink JobLink { get; set; }
 
 
         [EditorSequence(1)]
         [EditorSequence(1)]
-        [EntityRelationship(DeleteAction.SetNull)]
         [Caption("Activity",IncludePath = false)]
         [Caption("Activity",IncludePath = false)]
         public AssignmentActivityLink ActivityLink { get; set; }
         public AssignmentActivityLink ActivityLink { get; set; }
 
 

+ 0 - 2
prs.classes/Entities/Qualification/EmployeeRequiredQualification.cs

@@ -36,10 +36,8 @@ namespace Comal.Classes
     public class EmployeeRequiredQualification : Entity, IRemotable, IPersistent, IEmployeeRequiredQualification,
     public class EmployeeRequiredQualification : Entity, IRemotable, IPersistent, IEmployeeRequiredQualification,
         ILicense<CoreLicense>
         ILicense<CoreLicense>
     {
     {
-        [EntityRelationship(DeleteAction.Cascade)]
         public EmployeeLink Employee { get; set; }
         public EmployeeLink Employee { get; set; }
 
 
-        [EntityRelationship(DeleteAction.Cascade)]
         public QualificationLink Qualification { get; set; }
         public QualificationLink Qualification { get; set; }
 
 
         protected override void Init()
         protected override void Init()

+ 0 - 4
prs.classes/Entities/Stock/StockHolding.cs

@@ -156,16 +156,12 @@ namespace Comal.Classes
         IStockHolding, ILicense<WarehouseLicense>
         IStockHolding, ILicense<WarehouseLicense>
     {
     {
         
         
-        [EntityRelationship(DeleteAction.Cascade)]
         public ProductLink Product { get; set; }
         public ProductLink Product { get; set; }
 
 
-        [EntityRelationship(DeleteAction.Cascade)]
         public ProductStyleLink Style { get; set; }
         public ProductStyleLink Style { get; set; }
 
 
-        [EntityRelationship(DeleteAction.Cascade)]
         public StockLocationLink Location { get; set; }
         public StockLocationLink Location { get; set; }
 
 
-        [EntityRelationship(DeleteAction.SetNull)]
         public JobLink Job { get; set; }
         public JobLink Job { get; set; }
 
 
         [RequiredColumn]
         [RequiredColumn]