diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Models/GeneratedCode.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Models/GeneratedCode.cs
index 49bca8536..bc221417e 100644
--- a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Models/GeneratedCode.cs
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Models/GeneratedCode.cs
@@ -44,6 +44,7 @@ public static class Fields
{
public const string AccountId = "accountid";
public const string Id = "accountid";
+ public const string AccountNumber = "accountnumber";
public const string dfeta_TrainingProvider = "dfeta_trainingprovider";
public const string dfeta_UKPRN = "dfeta_ukprn";
public const string Name = "name";
@@ -57,6 +58,8 @@ public static class Fields
public const string dfeta_account_dfeta_document = "dfeta_account_dfeta_document";
public const string dfeta_account_dfeta_inductionperiod = "dfeta_account_dfeta_inductionperiod";
public const string dfeta_account_dfeta_initialteachertraining = "dfeta_account_dfeta_initialteachertraining";
+ public const string dfeta_account_dfeta_integrationtransaction = "dfeta_account_dfeta_integrationtransaction";
+ public const string dfeta_account_dfeta_integrationtransactionrecor = "dfeta_account_dfeta_integrationtransactionrecor";
public const string dfeta_account_dfeta_qualification_he = "dfeta_account_dfeta_qualification_he";
public const string incident_customer_accounts = "incident_customer_accounts";
public const string Referencedmsa_account_managingpartner = "Referencedmsa_account_managingpartner";
@@ -160,6 +163,26 @@ public override System.Guid Id
}
}
+ ///
+ /// User-provided account number used in correspondence about the account.
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("accountnumber")]
+ public string AccountNumber
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue("accountnumber");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("AccountNumber");
+ this.SetAttributeValue("accountnumber", value);
+ this.OnPropertyChanged("AccountNumber");
+ }
+ }
+
///
///
///
@@ -435,6 +458,46 @@ public System.Collections.Generic.IEnumerable
+ /// 1:N dfeta_account_dfeta_integrationtransaction
+ ///
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_account_dfeta_integrationtransaction")]
+ public System.Collections.Generic.IEnumerable dfeta_account_dfeta_integrationtransaction
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntities("dfeta_account_dfeta_integrationtransaction", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_account_dfeta_integrationtransaction");
+ this.SetRelatedEntities("dfeta_account_dfeta_integrationtransaction", null, value);
+ this.OnPropertyChanged("dfeta_account_dfeta_integrationtransaction");
+ }
+ }
+
+ ///
+ /// 1:N dfeta_account_dfeta_integrationtransactionrecor
+ ///
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_account_dfeta_integrationtransactionrecor")]
+ public System.Collections.Generic.IEnumerable dfeta_account_dfeta_integrationtransactionrecor
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntities("dfeta_account_dfeta_integrationtransactionrecor", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_account_dfeta_integrationtransactionrecor");
+ this.SetRelatedEntities("dfeta_account_dfeta_integrationtransactionrecor", null, value);
+ this.OnPropertyChanged("dfeta_account_dfeta_integrationtransactionrecor");
+ }
+ }
+
///
/// 1:N dfeta_account_dfeta_qualification_he
///
@@ -1663,6 +1726,8 @@ public static class Fields
public const string business_unit_dfeta_induction = "business_unit_dfeta_induction";
public const string business_unit_dfeta_inductionperiod = "business_unit_dfeta_inductionperiod";
public const string business_unit_dfeta_initialteachertraining = "business_unit_dfeta_initialteachertraining";
+ public const string business_unit_dfeta_integrationtransaction = "business_unit_dfeta_integrationtransaction";
+ public const string business_unit_dfeta_integrationtransactionrecord = "business_unit_dfeta_integrationtransactionrecord";
public const string business_unit_dfeta_previousname = "business_unit_dfeta_previousname";
public const string business_unit_dfeta_qtsregistration = "business_unit_dfeta_qtsregistration";
public const string business_unit_dfeta_qualification = "business_unit_dfeta_qualification";
@@ -1928,6 +1993,46 @@ public System.Collections.Generic.IEnumerable
+ /// 1:N business_unit_dfeta_integrationtransaction
+ ///
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_dfeta_integrationtransaction")]
+ public System.Collections.Generic.IEnumerable business_unit_dfeta_integrationtransaction
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntities("business_unit_dfeta_integrationtransaction", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("business_unit_dfeta_integrationtransaction");
+ this.SetRelatedEntities("business_unit_dfeta_integrationtransaction", null, value);
+ this.OnPropertyChanged("business_unit_dfeta_integrationtransaction");
+ }
+ }
+
+ ///
+ /// 1:N business_unit_dfeta_integrationtransactionrecord
+ ///
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_dfeta_integrationtransactionrecord")]
+ public System.Collections.Generic.IEnumerable business_unit_dfeta_integrationtransactionrecord
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntities("business_unit_dfeta_integrationtransactionrecord", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("business_unit_dfeta_integrationtransactionrecord");
+ this.SetRelatedEntities("business_unit_dfeta_integrationtransactionrecord", null, value);
+ this.OnPropertyChanged("business_unit_dfeta_integrationtransactionrecord");
+ }
+ }
+
///
/// 1:N business_unit_dfeta_previousname
///
@@ -2361,6 +2466,8 @@ public static class Fields
public const string dfeta_contact_dfeta_inductionperiod = "dfeta_contact_dfeta_inductionperiod";
public const string dfeta_contact_dfeta_initialteachertraining = "dfeta_contact_dfeta_initialteachertraining";
public const string dfeta_contact_dfeta_initialteachertraining1 = "dfeta_contact_dfeta_initialteachertraining1";
+ public const string dfeta_contact_dfeta_integrationtransaction = "dfeta_contact_dfeta_integrationtransaction";
+ public const string dfeta_contact_dfeta_integrationtransactionrecor = "dfeta_contact_dfeta_integrationtransactionrecor";
public const string dfeta_contact_dfeta_previousname = "dfeta_contact_dfeta_previousname";
public const string dfeta_contact_dfeta_qtsregistration = "dfeta_contact_dfeta_qtsregistration";
public const string dfeta_contact_dfeta_qtsregistration1 = "dfeta_contact_dfeta_qtsregistration1";
@@ -3707,6 +3814,46 @@ public System.Collections.Generic.IEnumerable
+ /// 1:N dfeta_contact_dfeta_integrationtransaction
+ ///
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_contact_dfeta_integrationtransaction")]
+ public System.Collections.Generic.IEnumerable dfeta_contact_dfeta_integrationtransaction
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntities("dfeta_contact_dfeta_integrationtransaction", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_contact_dfeta_integrationtransaction");
+ this.SetRelatedEntities("dfeta_contact_dfeta_integrationtransaction", null, value);
+ this.OnPropertyChanged("dfeta_contact_dfeta_integrationtransaction");
+ }
+ }
+
+ ///
+ /// 1:N dfeta_contact_dfeta_integrationtransactionrecor
+ ///
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_contact_dfeta_integrationtransactionrecor")]
+ public System.Collections.Generic.IEnumerable dfeta_contact_dfeta_integrationtransactionrecor
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntities("dfeta_contact_dfeta_integrationtransactionrecor", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_contact_dfeta_integrationtransactionrecor");
+ this.SetRelatedEntities("dfeta_contact_dfeta_integrationtransactionrecor", null, value);
+ this.OnPropertyChanged("dfeta_contact_dfeta_integrationtransactionrecor");
+ }
+ }
+
///
/// 1:N dfeta_contact_dfeta_previousname
///
@@ -6242,6 +6389,7 @@ public static class Fields
public const string StateCode = "statecode";
public const string StatusCode = "statuscode";
public const string dfeta_dfeta_induction_dfeta_inductionperiod = "dfeta_dfeta_induction_dfeta_inductionperiod";
+ public const string dfeta_dfeta_induction_dfeta_integrationtransact = "dfeta_dfeta_induction_dfeta_integrationtransact";
public const string dfeta_dfeta_induction_dfeta_qtsregistration = "dfeta_dfeta_induction_dfeta_qtsregistration";
public const string business_unit_dfeta_induction = "business_unit_dfeta_induction";
public const string dfeta_contact_dfeta_induction = "dfeta_contact_dfeta_induction";
@@ -6574,6 +6722,26 @@ public System.Collections.Generic.IEnumerable
+ /// 1:N dfeta_dfeta_induction_dfeta_integrationtransact
+ ///
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_dfeta_induction_dfeta_integrationtransact")]
+ public System.Collections.Generic.IEnumerable dfeta_dfeta_induction_dfeta_integrationtransact
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntities("dfeta_dfeta_induction_dfeta_integrationtransact", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_dfeta_induction_dfeta_integrationtransact");
+ this.SetRelatedEntities("dfeta_dfeta_induction_dfeta_integrationtransact", null, value);
+ this.OnPropertyChanged("dfeta_dfeta_induction_dfeta_integrationtransact");
+ }
+ }
+
///
/// 1:N dfeta_dfeta_induction_dfeta_qtsregistration
///
@@ -6790,9 +6958,12 @@ public static class Fields
public const string dfeta_AppropriateBodyId = "dfeta_appropriatebodyid";
public const string dfeta_EndDate = "dfeta_enddate";
public const string dfeta_InductionId = "dfeta_inductionid";
+ public const string dfeta_inductionperiodId = "dfeta_inductionperiodid";
+ public const string Id = "dfeta_inductionperiodid";
public const string dfeta_Numberofterms = "dfeta_numberofterms";
public const string dfeta_StartDate = "dfeta_startdate";
public const string StateCode = "statecode";
+ public const string dfeta_dfeta_inductionperiod_dfeta_integrationtr = "dfeta_dfeta_inductionperiod_dfeta_integrationtr";
public const string business_unit_dfeta_inductionperiod = "business_unit_dfeta_inductionperiod";
public const string dfeta_account_dfeta_inductionperiod = "dfeta_account_dfeta_inductionperiod";
public const string dfeta_contact_dfeta_inductionperiod = "dfeta_contact_dfeta_inductionperiod";
@@ -6907,6 +7078,49 @@ public Microsoft.Xrm.Sdk.EntityReference dfeta_InductionId
}
}
+ ///
+ /// Unique identifier for entity instances
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_inductionperiodid")]
+ public System.Nullable dfeta_inductionperiodId
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue>("dfeta_inductionperiodid");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_inductionperiodId");
+ this.SetAttributeValue("dfeta_inductionperiodid", value);
+ if (value.HasValue)
+ {
+ base.Id = value.Value;
+ }
+ else
+ {
+ base.Id = System.Guid.Empty;
+ }
+ this.OnPropertyChanged("dfeta_inductionperiodId");
+ }
+ }
+
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_inductionperiodid")]
+ public override System.Guid Id
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return base.Id;
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.dfeta_inductionperiodId = value;
+ }
+ }
+
///
///
///
@@ -6982,6 +7196,26 @@ public System.Nullable
+ /// 1:N dfeta_dfeta_inductionperiod_dfeta_integrationtr
+ ///
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_dfeta_inductionperiod_dfeta_integrationtr")]
+ public System.Collections.Generic.IEnumerable dfeta_dfeta_inductionperiod_dfeta_integrationtr
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntities("dfeta_dfeta_inductionperiod_dfeta_integrationtr", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_dfeta_inductionperiod_dfeta_integrationtr");
+ this.SetRelatedEntities("dfeta_dfeta_inductionperiod_dfeta_integrationtr", null, value);
+ this.OnPropertyChanged("dfeta_dfeta_inductionperiod_dfeta_integrationtr");
+ }
+ }
+
///
/// N:1 business_unit_dfeta_inductionperiod
///
@@ -7214,6 +7448,7 @@ public static class Fields
public const string dfeta_Subject3Id = "dfeta_subject3id";
public const string dfeta_TraineeID = "dfeta_traineeid";
public const string StateCode = "statecode";
+ public const string dfeta_dfeta_initialteachertraining_dfeta_integr = "dfeta_dfeta_initialteachertraining_dfeta_integr";
public const string business_unit_dfeta_initialteachertraining = "business_unit_dfeta_initialteachertraining";
public const string dfeta_account_dfeta_initialteachertraining = "dfeta_account_dfeta_initialteachertraining";
public const string dfeta_contact_dfeta_initialteachertraining = "dfeta_contact_dfeta_initialteachertraining";
@@ -7648,6 +7883,26 @@ public System.Nullable
+ /// 1:N dfeta_dfeta_initialteachertraining_dfeta_integr
+ ///
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_dfeta_initialteachertraining_dfeta_integr")]
+ public System.Collections.Generic.IEnumerable dfeta_dfeta_initialteachertraining_dfeta_integr
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntities("dfeta_dfeta_initialteachertraining_dfeta_integr", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_dfeta_initialteachertraining_dfeta_integr");
+ this.SetRelatedEntities("dfeta_dfeta_initialteachertraining_dfeta_integr", null, value);
+ this.OnPropertyChanged("dfeta_dfeta_initialteachertraining_dfeta_integr");
+ }
+ }
+
///
/// N:1 business_unit_dfeta_initialteachertraining
///
@@ -7691,254 +7946,1627 @@ public TeachingRecordSystem.Core.Dqt.Models.Account dfeta_account_dfeta_initialt
}
///
- /// N:1 dfeta_contact_dfeta_initialteachertraining
+ /// N:1 dfeta_contact_dfeta_initialteachertraining
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_personid")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_contact_dfeta_initialteachertraining")]
+ public TeachingRecordSystem.Core.Dqt.Models.Contact dfeta_contact_dfeta_initialteachertraining
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntity("dfeta_contact_dfeta_initialteachertraining", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_contact_dfeta_initialteachertraining");
+ this.SetRelatedEntity("dfeta_contact_dfeta_initialteachertraining", null, value);
+ this.OnPropertyChanged("dfeta_contact_dfeta_initialteachertraining");
+ }
+ }
+
+ ///
+ /// N:1 dfeta_contact_dfeta_initialteachertraining1
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_requestedbyid")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_contact_dfeta_initialteachertraining1")]
+ public TeachingRecordSystem.Core.Dqt.Models.Contact dfeta_contact_dfeta_initialteachertraining1
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntity("dfeta_contact_dfeta_initialteachertraining1", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_contact_dfeta_initialteachertraining1");
+ this.SetRelatedEntity("dfeta_contact_dfeta_initialteachertraining1", null, value);
+ this.OnPropertyChanged("dfeta_contact_dfeta_initialteachertraining1");
+ }
+ }
+
+ ///
+ /// N:1 dfeta_dfeta_country_dfeta_initialteachertrainin
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_countryid")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_dfeta_country_dfeta_initialteachertrainin")]
+ public TeachingRecordSystem.Core.Dqt.Models.dfeta_country dfeta_dfeta_country_dfeta_initialteachertrainin
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntity("dfeta_dfeta_country_dfeta_initialteachertrainin", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_dfeta_country_dfeta_initialteachertrainin");
+ this.SetRelatedEntity("dfeta_dfeta_country_dfeta_initialteachertrainin", null, value);
+ this.OnPropertyChanged("dfeta_dfeta_country_dfeta_initialteachertrainin");
+ }
+ }
+
+ ///
+ /// N:1 dfeta_dfeta_ittqualification_dfeta_initialteach
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_ittqualificationid")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_dfeta_ittqualification_dfeta_initialteach")]
+ public TeachingRecordSystem.Core.Dqt.Models.dfeta_ittqualification dfeta_dfeta_ittqualification_dfeta_initialteach
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntity("dfeta_dfeta_ittqualification_dfeta_initialteach", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_dfeta_ittqualification_dfeta_initialteach");
+ this.SetRelatedEntity("dfeta_dfeta_ittqualification_dfeta_initialteach", null, value);
+ this.OnPropertyChanged("dfeta_dfeta_ittqualification_dfeta_initialteach");
+ }
+ }
+
+ ///
+ /// N:1 dfeta_dfeta_ittsubject1_dfeta_initialteachertra
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_subject1id")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_dfeta_ittsubject1_dfeta_initialteachertra")]
+ public TeachingRecordSystem.Core.Dqt.Models.dfeta_ittsubject dfeta_dfeta_ittsubject1_dfeta_initialteachertra
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntity("dfeta_dfeta_ittsubject1_dfeta_initialteachertra", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_dfeta_ittsubject1_dfeta_initialteachertra");
+ this.SetRelatedEntity("dfeta_dfeta_ittsubject1_dfeta_initialteachertra", null, value);
+ this.OnPropertyChanged("dfeta_dfeta_ittsubject1_dfeta_initialteachertra");
+ }
+ }
+
+ ///
+ /// N:1 dfeta_dfeta_ittsubject2_dfeta_initialteachertra
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_subject2id")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_dfeta_ittsubject2_dfeta_initialteachertra")]
+ public TeachingRecordSystem.Core.Dqt.Models.dfeta_ittsubject dfeta_dfeta_ittsubject2_dfeta_initialteachertra
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntity("dfeta_dfeta_ittsubject2_dfeta_initialteachertra", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_dfeta_ittsubject2_dfeta_initialteachertra");
+ this.SetRelatedEntity("dfeta_dfeta_ittsubject2_dfeta_initialteachertra", null, value);
+ this.OnPropertyChanged("dfeta_dfeta_ittsubject2_dfeta_initialteachertra");
+ }
+ }
+
+ ///
+ /// N:1 dfeta_dfeta_ittsubject3_dfeta_initialteachertra
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_subject3id")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_dfeta_ittsubject3_dfeta_initialteachertra")]
+ public TeachingRecordSystem.Core.Dqt.Models.dfeta_ittsubject dfeta_dfeta_ittsubject3_dfeta_initialteachertra
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntity("dfeta_dfeta_ittsubject3_dfeta_initialteachertra", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_dfeta_ittsubject3_dfeta_initialteachertra");
+ this.SetRelatedEntity("dfeta_dfeta_ittsubject3_dfeta_initialteachertra", null, value);
+ this.OnPropertyChanged("dfeta_dfeta_ittsubject3_dfeta_initialteachertra");
+ }
+ }
+
+ ///
+ /// N:1 lk_dfeta_initialteachertraining_createdby
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_initialteachertraining_createdby")]
+ public TeachingRecordSystem.Core.Dqt.Models.SystemUser lk_dfeta_initialteachertraining_createdby
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntity("lk_dfeta_initialteachertraining_createdby", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("lk_dfeta_initialteachertraining_createdby");
+ this.SetRelatedEntity("lk_dfeta_initialteachertraining_createdby", null, value);
+ this.OnPropertyChanged("lk_dfeta_initialteachertraining_createdby");
+ }
+ }
+
+ ///
+ /// N:1 lk_dfeta_initialteachertraining_createdonbehalfby
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_initialteachertraining_createdonbehalfby")]
+ public TeachingRecordSystem.Core.Dqt.Models.SystemUser lk_dfeta_initialteachertraining_createdonbehalfby
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntity("lk_dfeta_initialteachertraining_createdonbehalfby", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("lk_dfeta_initialteachertraining_createdonbehalfby");
+ this.SetRelatedEntity("lk_dfeta_initialteachertraining_createdonbehalfby", null, value);
+ this.OnPropertyChanged("lk_dfeta_initialteachertraining_createdonbehalfby");
+ }
+ }
+
+ ///
+ /// N:1 lk_dfeta_initialteachertraining_modifiedby
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_initialteachertraining_modifiedby")]
+ public TeachingRecordSystem.Core.Dqt.Models.SystemUser lk_dfeta_initialteachertraining_modifiedby
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntity("lk_dfeta_initialteachertraining_modifiedby", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("lk_dfeta_initialteachertraining_modifiedby");
+ this.SetRelatedEntity("lk_dfeta_initialteachertraining_modifiedby", null, value);
+ this.OnPropertyChanged("lk_dfeta_initialteachertraining_modifiedby");
+ }
+ }
+
+ ///
+ /// N:1 lk_dfeta_initialteachertraining_modifiedonbehalfby
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_initialteachertraining_modifiedonbehalfby")]
+ public TeachingRecordSystem.Core.Dqt.Models.SystemUser lk_dfeta_initialteachertraining_modifiedonbehalfby
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntity("lk_dfeta_initialteachertraining_modifiedonbehalfby", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("lk_dfeta_initialteachertraining_modifiedonbehalfby");
+ this.SetRelatedEntity("lk_dfeta_initialteachertraining_modifiedonbehalfby", null, value);
+ this.OnPropertyChanged("lk_dfeta_initialteachertraining_modifiedonbehalfby");
+ }
+ }
+
+ ///
+ /// N:1 user_dfeta_initialteachertraining
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_dfeta_initialteachertraining")]
+ public TeachingRecordSystem.Core.Dqt.Models.SystemUser user_dfeta_initialteachertraining
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntity("user_dfeta_initialteachertraining", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("user_dfeta_initialteachertraining");
+ this.SetRelatedEntity("user_dfeta_initialteachertraining", null, value);
+ this.OnPropertyChanged("user_dfeta_initialteachertraining");
+ }
+ }
+ }
+
+ [System.Runtime.Serialization.DataContractAttribute()]
+ public enum dfeta_integrationtransactionState
+ {
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ Active = 0,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ Inactive = 1,
+ }
+
+ ///
+ ///
+ ///
+ [System.Runtime.Serialization.DataContractAttribute()]
+ [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("dfeta_integrationtransaction")]
+ public partial class dfeta_integrationtransaction : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
+ {
+
+ ///
+ /// Available fields, a the time of codegen, for the dfeta_integrationtransaction entity
+ ///
+ public static class Fields
+ {
+ public const string CreatedBy = "createdby";
+ public const string CreatedOn = "createdon";
+ public const string dfeta_DuplicateCount = "dfeta_duplicatecount";
+ public const string dfeta_EndDate = "dfeta_enddate";
+ public const string dfeta_FailureCount = "dfeta_failurecount";
+ public const string dfeta_FailureMessage = "dfeta_failuremessage";
+ public const string dfeta_Filename = "dfeta_filename";
+ public const string dfeta_id = "dfeta_id";
+ public const string dfeta_ImportOrganisation = "dfeta_importorganisation";
+ public const string dfeta_integrationtransactionId = "dfeta_integrationtransactionid";
+ public const string Id = "dfeta_integrationtransactionid";
+ public const string dfeta_Interface = "dfeta_interface";
+ public const string dfeta_StartDate = "dfeta_startdate";
+ public const string dfeta_SuccessCount = "dfeta_successcount";
+ public const string dfeta_TotalCount = "dfeta_totalcount";
+ public const string StateCode = "statecode";
+ public const string dfeta_dfeta_integrationtransaction_dfeta_integr = "dfeta_dfeta_integrationtransaction_dfeta_integr";
+ public const string business_unit_dfeta_integrationtransaction = "business_unit_dfeta_integrationtransaction";
+ public const string dfeta_account_dfeta_integrationtransaction = "dfeta_account_dfeta_integrationtransaction";
+ public const string dfeta_contact_dfeta_integrationtransaction = "dfeta_contact_dfeta_integrationtransaction";
+ public const string lk_dfeta_integrationtransaction_createdby = "lk_dfeta_integrationtransaction_createdby";
+ public const string lk_dfeta_integrationtransaction_createdonbehalfby = "lk_dfeta_integrationtransaction_createdonbehalfby";
+ public const string lk_dfeta_integrationtransaction_modifiedby = "lk_dfeta_integrationtransaction_modifiedby";
+ public const string lk_dfeta_integrationtransaction_modifiedonbehalfby = "lk_dfeta_integrationtransaction_modifiedonbehalfby";
+ public const string user_dfeta_integrationtransaction = "user_dfeta_integrationtransaction";
+ }
+
+ ///
+ /// Default Constructor.
+ ///
+ [System.Diagnostics.DebuggerNonUserCode()]
+ public dfeta_integrationtransaction() :
+ base(EntityLogicalName)
+ {
+ }
+
+ public const string EntitySchemaName = "dfeta_integrationtransaction";
+
+ public const string PrimaryIdAttribute = "dfeta_integrationtransactionid";
+
+ public const string PrimaryNameAttribute = "dfeta_id";
+
+ public const string EntityLogicalName = "dfeta_integrationtransaction";
+
+ public const string EntityLogicalCollectionName = "dfeta_integrationtransactions";
+
+ public const string EntitySetName = "dfeta_integrationtransactions";
+
+ public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
+
+ public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging;
+
+ [System.Diagnostics.DebuggerNonUserCode()]
+ private void OnPropertyChanged(string propertyName)
+ {
+ if ((this.PropertyChanged != null))
+ {
+ this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
+ }
+ }
+
+ [System.Diagnostics.DebuggerNonUserCode()]
+ private void OnPropertyChanging(string propertyName)
+ {
+ if ((this.PropertyChanging != null))
+ {
+ this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName));
+ }
+ }
+
+ ///
+ /// Unique identifier of the user who created the record.
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")]
+ public Microsoft.Xrm.Sdk.EntityReference CreatedBy
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue("createdby");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("CreatedBy");
+ this.SetAttributeValue("createdby", value);
+ this.OnPropertyChanged("CreatedBy");
+ }
+ }
+
+ ///
+ /// Date and time when the record was created.
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")]
+ public System.Nullable CreatedOn
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue>("createdon");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("CreatedOn");
+ this.SetAttributeValue("createdon", value);
+ this.OnPropertyChanged("CreatedOn");
+ }
+ }
+
+ ///
+ ///
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_duplicatecount")]
+ public System.Nullable dfeta_DuplicateCount
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue>("dfeta_duplicatecount");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_DuplicateCount");
+ this.SetAttributeValue("dfeta_duplicatecount", value);
+ this.OnPropertyChanged("dfeta_DuplicateCount");
+ }
+ }
+
+ ///
+ ///
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_enddate")]
+ public System.Nullable dfeta_EndDate
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue>("dfeta_enddate");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_EndDate");
+ this.SetAttributeValue("dfeta_enddate", value);
+ this.OnPropertyChanged("dfeta_EndDate");
+ }
+ }
+
+ ///
+ ///
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_failurecount")]
+ public System.Nullable dfeta_FailureCount
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue>("dfeta_failurecount");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_FailureCount");
+ this.SetAttributeValue("dfeta_failurecount", value);
+ this.OnPropertyChanged("dfeta_FailureCount");
+ }
+ }
+
+ ///
+ ///
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_failuremessage")]
+ public string dfeta_FailureMessage
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue("dfeta_failuremessage");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_FailureMessage");
+ this.SetAttributeValue("dfeta_failuremessage", value);
+ this.OnPropertyChanged("dfeta_FailureMessage");
+ }
+ }
+
+ ///
+ ///
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_filename")]
+ public string dfeta_Filename
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue("dfeta_filename");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_Filename");
+ this.SetAttributeValue("dfeta_filename", value);
+ this.OnPropertyChanged("dfeta_Filename");
+ }
+ }
+
+ ///
+ /// The name of the custom entity.
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_id")]
+ public string dfeta_id
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue("dfeta_id");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_id");
+ this.SetAttributeValue("dfeta_id", value);
+ this.OnPropertyChanged("dfeta_id");
+ }
+ }
+
+ ///
+ /// Unique identifier for Organisation associated with Integration Transaction.
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_importorganisation")]
+ public Microsoft.Xrm.Sdk.EntityReference dfeta_ImportOrganisation
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue("dfeta_importorganisation");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_ImportOrganisation");
+ this.SetAttributeValue("dfeta_importorganisation", value);
+ this.OnPropertyChanged("dfeta_ImportOrganisation");
+ }
+ }
+
+ ///
+ /// Unique identifier for entity instances
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_integrationtransactionid")]
+ public System.Nullable dfeta_integrationtransactionId
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue>("dfeta_integrationtransactionid");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_integrationtransactionId");
+ this.SetAttributeValue("dfeta_integrationtransactionid", value);
+ if (value.HasValue)
+ {
+ base.Id = value.Value;
+ }
+ else
+ {
+ base.Id = System.Guid.Empty;
+ }
+ this.OnPropertyChanged("dfeta_integrationtransactionId");
+ }
+ }
+
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_integrationtransactionid")]
+ public override System.Guid Id
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return base.Id;
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.dfeta_integrationtransactionId = value;
+ }
+ }
+
+ ///
+ ///
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_interface")]
+ public virtual dfeta_IntegrationInterface? dfeta_Interface
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return ((dfeta_IntegrationInterface?)(EntityOptionSetEnum.GetEnum(this, "dfeta_interface")));
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_Interface");
+ this.SetAttributeValue("dfeta_interface", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null);
+ this.OnPropertyChanged("dfeta_Interface");
+ }
+ }
+
+ ///
+ ///
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_startdate")]
+ public System.Nullable dfeta_StartDate
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue>("dfeta_startdate");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_StartDate");
+ this.SetAttributeValue("dfeta_startdate", value);
+ this.OnPropertyChanged("dfeta_StartDate");
+ }
+ }
+
+ ///
+ ///
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_successcount")]
+ public System.Nullable dfeta_SuccessCount
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue>("dfeta_successcount");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_SuccessCount");
+ this.SetAttributeValue("dfeta_successcount", value);
+ this.OnPropertyChanged("dfeta_SuccessCount");
+ }
+ }
+
+ ///
+ ///
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_totalcount")]
+ public System.Nullable dfeta_TotalCount
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue>("dfeta_totalcount");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_TotalCount");
+ this.SetAttributeValue("dfeta_totalcount", value);
+ this.OnPropertyChanged("dfeta_TotalCount");
+ }
+ }
+
+ ///
+ /// Status of the Integration Transaction
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")]
+ public System.Nullable StateCode
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode");
+ if ((optionSet != null))
+ {
+ return ((TeachingRecordSystem.Core.Dqt.Models.dfeta_integrationtransactionState)(System.Enum.ToObject(typeof(TeachingRecordSystem.Core.Dqt.Models.dfeta_integrationtransactionState), optionSet.Value)));
+ }
+ else
+ {
+ return null;
+ }
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("StateCode");
+ if ((value == null))
+ {
+ this.SetAttributeValue("statecode", null);
+ }
+ else
+ {
+ this.SetAttributeValue("statecode", new Microsoft.Xrm.Sdk.OptionSetValue(((int)(value))));
+ }
+ this.OnPropertyChanged("StateCode");
+ }
+ }
+
+ ///
+ /// 1:N dfeta_dfeta_integrationtransaction_dfeta_integr
+ ///
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_dfeta_integrationtransaction_dfeta_integr")]
+ public System.Collections.Generic.IEnumerable dfeta_dfeta_integrationtransaction_dfeta_integr
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntities("dfeta_dfeta_integrationtransaction_dfeta_integr", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_dfeta_integrationtransaction_dfeta_integr");
+ this.SetRelatedEntities("dfeta_dfeta_integrationtransaction_dfeta_integr", null, value);
+ this.OnPropertyChanged("dfeta_dfeta_integrationtransaction_dfeta_integr");
+ }
+ }
+
+ ///
+ /// N:1 business_unit_dfeta_integrationtransaction
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_dfeta_integrationtransaction")]
+ public TeachingRecordSystem.Core.Dqt.Models.BusinessUnit business_unit_dfeta_integrationtransaction
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntity("business_unit_dfeta_integrationtransaction", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("business_unit_dfeta_integrationtransaction");
+ this.SetRelatedEntity("business_unit_dfeta_integrationtransaction", null, value);
+ this.OnPropertyChanged("business_unit_dfeta_integrationtransaction");
+ }
+ }
+
+ ///
+ /// N:1 dfeta_account_dfeta_integrationtransaction
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_importorganisation")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_account_dfeta_integrationtransaction")]
+ public TeachingRecordSystem.Core.Dqt.Models.Account dfeta_account_dfeta_integrationtransaction
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntity("dfeta_account_dfeta_integrationtransaction", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_account_dfeta_integrationtransaction");
+ this.SetRelatedEntity("dfeta_account_dfeta_integrationtransaction", null, value);
+ this.OnPropertyChanged("dfeta_account_dfeta_integrationtransaction");
+ }
+ }
+
+ ///
+ /// N:1 dfeta_contact_dfeta_integrationtransaction
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_importuser")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_contact_dfeta_integrationtransaction")]
+ public TeachingRecordSystem.Core.Dqt.Models.Contact dfeta_contact_dfeta_integrationtransaction
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntity("dfeta_contact_dfeta_integrationtransaction", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_contact_dfeta_integrationtransaction");
+ this.SetRelatedEntity("dfeta_contact_dfeta_integrationtransaction", null, value);
+ this.OnPropertyChanged("dfeta_contact_dfeta_integrationtransaction");
+ }
+ }
+
+ ///
+ /// N:1 lk_dfeta_integrationtransaction_createdby
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_integrationtransaction_createdby")]
+ public TeachingRecordSystem.Core.Dqt.Models.SystemUser lk_dfeta_integrationtransaction_createdby
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntity("lk_dfeta_integrationtransaction_createdby", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("lk_dfeta_integrationtransaction_createdby");
+ this.SetRelatedEntity("lk_dfeta_integrationtransaction_createdby", null, value);
+ this.OnPropertyChanged("lk_dfeta_integrationtransaction_createdby");
+ }
+ }
+
+ ///
+ /// N:1 lk_dfeta_integrationtransaction_createdonbehalfby
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_integrationtransaction_createdonbehalfby")]
+ public TeachingRecordSystem.Core.Dqt.Models.SystemUser lk_dfeta_integrationtransaction_createdonbehalfby
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntity("lk_dfeta_integrationtransaction_createdonbehalfby", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("lk_dfeta_integrationtransaction_createdonbehalfby");
+ this.SetRelatedEntity("lk_dfeta_integrationtransaction_createdonbehalfby", null, value);
+ this.OnPropertyChanged("lk_dfeta_integrationtransaction_createdonbehalfby");
+ }
+ }
+
+ ///
+ /// N:1 lk_dfeta_integrationtransaction_modifiedby
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_integrationtransaction_modifiedby")]
+ public TeachingRecordSystem.Core.Dqt.Models.SystemUser lk_dfeta_integrationtransaction_modifiedby
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntity("lk_dfeta_integrationtransaction_modifiedby", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("lk_dfeta_integrationtransaction_modifiedby");
+ this.SetRelatedEntity("lk_dfeta_integrationtransaction_modifiedby", null, value);
+ this.OnPropertyChanged("lk_dfeta_integrationtransaction_modifiedby");
+ }
+ }
+
+ ///
+ /// N:1 lk_dfeta_integrationtransaction_modifiedonbehalfby
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_integrationtransaction_modifiedonbehalfby")]
+ public TeachingRecordSystem.Core.Dqt.Models.SystemUser lk_dfeta_integrationtransaction_modifiedonbehalfby
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntity("lk_dfeta_integrationtransaction_modifiedonbehalfby", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("lk_dfeta_integrationtransaction_modifiedonbehalfby");
+ this.SetRelatedEntity("lk_dfeta_integrationtransaction_modifiedonbehalfby", null, value);
+ this.OnPropertyChanged("lk_dfeta_integrationtransaction_modifiedonbehalfby");
+ }
+ }
+
+ ///
+ /// N:1 user_dfeta_integrationtransaction
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_dfeta_integrationtransaction")]
+ public TeachingRecordSystem.Core.Dqt.Models.SystemUser user_dfeta_integrationtransaction
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntity("user_dfeta_integrationtransaction", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("user_dfeta_integrationtransaction");
+ this.SetRelatedEntity("user_dfeta_integrationtransaction", null, value);
+ this.OnPropertyChanged("user_dfeta_integrationtransaction");
+ }
+ }
+ }
+
+ [System.Runtime.Serialization.DataContractAttribute()]
+ public enum dfeta_integrationtransactionrecordState
+ {
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ Active = 0,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ Inactive = 1,
+ }
+
+ ///
+ ///
+ ///
+ [System.Runtime.Serialization.DataContractAttribute()]
+ [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("dfeta_integrationtransactionrecord")]
+ public partial class dfeta_integrationtransactionrecord : Microsoft.Xrm.Sdk.Entity, System.ComponentModel.INotifyPropertyChanging, System.ComponentModel.INotifyPropertyChanged
+ {
+
+ ///
+ /// Available fields, a the time of codegen, for the dfeta_integrationtransactionrecord entity
+ ///
+ public static class Fields
+ {
+ public const string dfeta_DuplicateStatus = "dfeta_duplicatestatus";
+ public const string dfeta_FailureMessage = "dfeta_failuremessage";
+ public const string dfeta_Filename = "dfeta_filename";
+ public const string dfeta_id = "dfeta_id";
+ public const string dfeta_InductionId = "dfeta_inductionid";
+ public const string dfeta_InductionPeriodId = "dfeta_inductionperiodid";
+ public const string dfeta_InitialTeacherTrainingId = "dfeta_initialteachertrainingid";
+ public const string dfeta_IntegrationTransactionId = "dfeta_integrationtransactionid";
+ public const string dfeta_integrationtransactionrecordId = "dfeta_integrationtransactionrecordid";
+ public const string Id = "dfeta_integrationtransactionrecordid";
+ public const string dfeta_OrganisationId = "dfeta_organisationid";
+ public const string dfeta_PersonId = "dfeta_personid";
+ public const string dfeta_QualificationId = "dfeta_qualificationid";
+ public const string dfeta_RowData = "dfeta_rowdata";
+ public const string dfeta_TREFNO = "dfeta_trefno";
+ public const string dfeta_UKPRN = "dfeta_ukprn";
+ public const string StateCode = "statecode";
+ public const string StatusCode = "statuscode";
+ public const string business_unit_dfeta_integrationtransactionrecord = "business_unit_dfeta_integrationtransactionrecord";
+ public const string dfeta_account_dfeta_integrationtransactionrecor = "dfeta_account_dfeta_integrationtransactionrecor";
+ public const string dfeta_contact_dfeta_integrationtransactionrecor = "dfeta_contact_dfeta_integrationtransactionrecor";
+ public const string dfeta_dfeta_induction_dfeta_integrationtransact = "dfeta_dfeta_induction_dfeta_integrationtransact";
+ public const string dfeta_dfeta_inductionperiod_dfeta_integrationtr = "dfeta_dfeta_inductionperiod_dfeta_integrationtr";
+ public const string dfeta_dfeta_initialteachertraining_dfeta_integr = "dfeta_dfeta_initialteachertraining_dfeta_integr";
+ public const string dfeta_dfeta_integrationtransaction_dfeta_integr = "dfeta_dfeta_integrationtransaction_dfeta_integr";
+ public const string dfeta_dfeta_qualification_dfeta_integrationtran = "dfeta_dfeta_qualification_dfeta_integrationtran";
+ public const string lk_dfeta_integrationtransactionrecord_createdby = "lk_dfeta_integrationtransactionrecord_createdby";
+ public const string lk_dfeta_integrationtransactionrecord_createdonbehalfby = "lk_dfeta_integrationtransactionrecord_createdonbehalfby";
+ public const string lk_dfeta_integrationtransactionrecord_modifiedby = "lk_dfeta_integrationtransactionrecord_modifiedby";
+ public const string lk_dfeta_integrationtransactionrecord_modifiedonbehalfby = "lk_dfeta_integrationtransactionrecord_modifiedonbehalfby";
+ public const string user_dfeta_integrationtransactionrecord = "user_dfeta_integrationtransactionrecord";
+ }
+
+ ///
+ /// Default Constructor.
+ ///
+ [System.Diagnostics.DebuggerNonUserCode()]
+ public dfeta_integrationtransactionrecord() :
+ base(EntityLogicalName)
+ {
+ }
+
+ public const string EntitySchemaName = "dfeta_integrationtransactionrecord";
+
+ public const string PrimaryIdAttribute = "dfeta_integrationtransactionrecordid";
+
+ public const string PrimaryNameAttribute = "dfeta_id";
+
+ public const string EntityLogicalName = "dfeta_integrationtransactionrecord";
+
+ public const string EntityLogicalCollectionName = "dfeta_integrationtransactionrecords";
+
+ public const string EntitySetName = "dfeta_integrationtransactionrecords";
+
+ public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
+
+ public event System.ComponentModel.PropertyChangingEventHandler PropertyChanging;
+
+ [System.Diagnostics.DebuggerNonUserCode()]
+ private void OnPropertyChanged(string propertyName)
+ {
+ if ((this.PropertyChanged != null))
+ {
+ this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
+ }
+ }
+
+ [System.Diagnostics.DebuggerNonUserCode()]
+ private void OnPropertyChanging(string propertyName)
+ {
+ if ((this.PropertyChanging != null))
+ {
+ this.PropertyChanging(this, new System.ComponentModel.PropertyChangingEventArgs(propertyName));
+ }
+ }
+
+ ///
+ ///
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_duplicatestatus")]
+ public virtual dfeta_integrationtransactionrecord_dfeta_DuplicateStatus? dfeta_DuplicateStatus
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return ((dfeta_integrationtransactionrecord_dfeta_DuplicateStatus?)(EntityOptionSetEnum.GetEnum(this, "dfeta_duplicatestatus")));
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_DuplicateStatus");
+ this.SetAttributeValue("dfeta_duplicatestatus", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null);
+ this.OnPropertyChanged("dfeta_DuplicateStatus");
+ }
+ }
+
+ ///
+ ///
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_failuremessage")]
+ public string dfeta_FailureMessage
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue("dfeta_failuremessage");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_FailureMessage");
+ this.SetAttributeValue("dfeta_failuremessage", value);
+ this.OnPropertyChanged("dfeta_FailureMessage");
+ }
+ }
+
+ ///
+ ///
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_filename")]
+ public string dfeta_Filename
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue("dfeta_filename");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_Filename");
+ this.SetAttributeValue("dfeta_filename", value);
+ this.OnPropertyChanged("dfeta_Filename");
+ }
+ }
+
+ ///
+ /// The name of the custom entity.
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_id")]
+ public string dfeta_id
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue("dfeta_id");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_id");
+ this.SetAttributeValue("dfeta_id", value);
+ this.OnPropertyChanged("dfeta_id");
+ }
+ }
+
+ ///
+ /// Unique identifier for Induction associated with Integration Transaction Record.
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_inductionid")]
+ public Microsoft.Xrm.Sdk.EntityReference dfeta_InductionId
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue("dfeta_inductionid");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_InductionId");
+ this.SetAttributeValue("dfeta_inductionid", value);
+ this.OnPropertyChanged("dfeta_InductionId");
+ }
+ }
+
+ ///
+ /// Unique identifier for Induction Period associated with Integration Transaction Record.
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_inductionperiodid")]
+ public Microsoft.Xrm.Sdk.EntityReference dfeta_InductionPeriodId
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue("dfeta_inductionperiodid");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_InductionPeriodId");
+ this.SetAttributeValue("dfeta_inductionperiodid", value);
+ this.OnPropertyChanged("dfeta_InductionPeriodId");
+ }
+ }
+
+ ///
+ /// Unique identifier for Initial Teacher Training associated with Integration Transaction Record.
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_initialteachertrainingid")]
+ public Microsoft.Xrm.Sdk.EntityReference dfeta_InitialTeacherTrainingId
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue("dfeta_initialteachertrainingid");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_InitialTeacherTrainingId");
+ this.SetAttributeValue("dfeta_initialteachertrainingid", value);
+ this.OnPropertyChanged("dfeta_InitialTeacherTrainingId");
+ }
+ }
+
+ ///
+ /// Unique identifier for Integration Transaction associated with Integration Transaction Record.
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_integrationtransactionid")]
+ public Microsoft.Xrm.Sdk.EntityReference dfeta_IntegrationTransactionId
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue("dfeta_integrationtransactionid");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_IntegrationTransactionId");
+ this.SetAttributeValue("dfeta_integrationtransactionid", value);
+ this.OnPropertyChanged("dfeta_IntegrationTransactionId");
+ }
+ }
+
+ ///
+ /// Unique identifier for entity instances
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_integrationtransactionrecordid")]
+ public System.Nullable dfeta_integrationtransactionrecordId
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue>("dfeta_integrationtransactionrecordid");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_integrationtransactionrecordId");
+ this.SetAttributeValue("dfeta_integrationtransactionrecordid", value);
+ if (value.HasValue)
+ {
+ base.Id = value.Value;
+ }
+ else
+ {
+ base.Id = System.Guid.Empty;
+ }
+ this.OnPropertyChanged("dfeta_integrationtransactionrecordId");
+ }
+ }
+
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_integrationtransactionrecordid")]
+ public override System.Guid Id
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return base.Id;
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.dfeta_integrationtransactionrecordId = value;
+ }
+ }
+
+ ///
+ /// Unique identifier for Organisation associated with Integration Transaction Record.
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_organisationid")]
+ public Microsoft.Xrm.Sdk.EntityReference dfeta_OrganisationId
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue("dfeta_organisationid");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_OrganisationId");
+ this.SetAttributeValue("dfeta_organisationid", value);
+ this.OnPropertyChanged("dfeta_OrganisationId");
+ }
+ }
+
+ ///
+ /// Unique identifier for Person associated with Integration Transaction Record.
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_personid")]
+ public Microsoft.Xrm.Sdk.EntityReference dfeta_PersonId
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue("dfeta_personid");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_PersonId");
+ this.SetAttributeValue("dfeta_personid", value);
+ this.OnPropertyChanged("dfeta_PersonId");
+ }
+ }
+
+ ///
+ /// Unique identifier for Qualification associated with Integration Transaction Record.
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_qualificationid")]
+ public Microsoft.Xrm.Sdk.EntityReference dfeta_QualificationId
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue("dfeta_qualificationid");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_QualificationId");
+ this.SetAttributeValue("dfeta_qualificationid", value);
+ this.OnPropertyChanged("dfeta_QualificationId");
+ }
+ }
+
+ ///
+ ///
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_rowdata")]
+ public string dfeta_RowData
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue("dfeta_rowdata");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_RowData");
+ this.SetAttributeValue("dfeta_rowdata", value);
+ this.OnPropertyChanged("dfeta_RowData");
+ }
+ }
+
+ ///
+ ///
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_trefno")]
+ public string dfeta_TREFNO
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue("dfeta_trefno");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_TREFNO");
+ this.SetAttributeValue("dfeta_trefno", value);
+ this.OnPropertyChanged("dfeta_TREFNO");
+ }
+ }
+
+ ///
+ ///
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_ukprn")]
+ public string dfeta_UKPRN
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetAttributeValue("dfeta_ukprn");
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_UKPRN");
+ this.SetAttributeValue("dfeta_ukprn", value);
+ this.OnPropertyChanged("dfeta_UKPRN");
+ }
+ }
+
+ ///
+ /// Status of the Integration Transaction Record
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")]
+ public System.Nullable StateCode
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ Microsoft.Xrm.Sdk.OptionSetValue optionSet = this.GetAttributeValue("statecode");
+ if ((optionSet != null))
+ {
+ return ((TeachingRecordSystem.Core.Dqt.Models.dfeta_integrationtransactionrecordState)(System.Enum.ToObject(typeof(TeachingRecordSystem.Core.Dqt.Models.dfeta_integrationtransactionrecordState), optionSet.Value)));
+ }
+ else
+ {
+ return null;
+ }
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("StateCode");
+ if ((value == null))
+ {
+ this.SetAttributeValue("statecode", null);
+ }
+ else
+ {
+ this.SetAttributeValue("statecode", new Microsoft.Xrm.Sdk.OptionSetValue(((int)(value))));
+ }
+ this.OnPropertyChanged("StateCode");
+ }
+ }
+
+ ///
+ /// Reason for the status of the Integration Transaction Record
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")]
+ public virtual dfeta_integrationtransactionrecord_StatusCode? StatusCode
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return ((dfeta_integrationtransactionrecord_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode")));
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("StatusCode");
+ this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null);
+ this.OnPropertyChanged("StatusCode");
+ }
+ }
+
+ ///
+ /// N:1 business_unit_dfeta_integrationtransactionrecord
+ ///
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_dfeta_integrationtransactionrecord")]
+ public TeachingRecordSystem.Core.Dqt.Models.BusinessUnit business_unit_dfeta_integrationtransactionrecord
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntity("business_unit_dfeta_integrationtransactionrecord", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("business_unit_dfeta_integrationtransactionrecord");
+ this.SetRelatedEntity("business_unit_dfeta_integrationtransactionrecord", null, value);
+ this.OnPropertyChanged("business_unit_dfeta_integrationtransactionrecord");
+ }
+ }
+
+ ///
+ /// N:1 dfeta_account_dfeta_integrationtransactionrecor
///
- [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_personid")]
- [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_contact_dfeta_initialteachertraining")]
- public TeachingRecordSystem.Core.Dqt.Models.Contact dfeta_contact_dfeta_initialteachertraining
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_organisationid")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_account_dfeta_integrationtransactionrecor")]
+ public TeachingRecordSystem.Core.Dqt.Models.Account dfeta_account_dfeta_integrationtransactionrecor
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
- return this.GetRelatedEntity("dfeta_contact_dfeta_initialteachertraining", null);
+ return this.GetRelatedEntity("dfeta_account_dfeta_integrationtransactionrecor", null);
}
[System.Diagnostics.DebuggerNonUserCode()]
set
{
- this.OnPropertyChanging("dfeta_contact_dfeta_initialteachertraining");
- this.SetRelatedEntity("dfeta_contact_dfeta_initialteachertraining", null, value);
- this.OnPropertyChanged("dfeta_contact_dfeta_initialteachertraining");
+ this.OnPropertyChanging("dfeta_account_dfeta_integrationtransactionrecor");
+ this.SetRelatedEntity("dfeta_account_dfeta_integrationtransactionrecor", null, value);
+ this.OnPropertyChanged("dfeta_account_dfeta_integrationtransactionrecor");
}
}
///
- /// N:1 dfeta_contact_dfeta_initialteachertraining1
+ /// N:1 dfeta_contact_dfeta_integrationtransactionrecor
///
- [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_requestedbyid")]
- [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_contact_dfeta_initialteachertraining1")]
- public TeachingRecordSystem.Core.Dqt.Models.Contact dfeta_contact_dfeta_initialteachertraining1
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_personid")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_contact_dfeta_integrationtransactionrecor")]
+ public TeachingRecordSystem.Core.Dqt.Models.Contact dfeta_contact_dfeta_integrationtransactionrecor
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
- return this.GetRelatedEntity("dfeta_contact_dfeta_initialteachertraining1", null);
+ return this.GetRelatedEntity("dfeta_contact_dfeta_integrationtransactionrecor", null);
}
[System.Diagnostics.DebuggerNonUserCode()]
set
{
- this.OnPropertyChanging("dfeta_contact_dfeta_initialteachertraining1");
- this.SetRelatedEntity("dfeta_contact_dfeta_initialteachertraining1", null, value);
- this.OnPropertyChanged("dfeta_contact_dfeta_initialteachertraining1");
+ this.OnPropertyChanging("dfeta_contact_dfeta_integrationtransactionrecor");
+ this.SetRelatedEntity("dfeta_contact_dfeta_integrationtransactionrecor", null, value);
+ this.OnPropertyChanged("dfeta_contact_dfeta_integrationtransactionrecor");
}
}
///
- /// N:1 dfeta_dfeta_country_dfeta_initialteachertrainin
+ /// N:1 dfeta_dfeta_induction_dfeta_integrationtransact
///
- [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_countryid")]
- [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_dfeta_country_dfeta_initialteachertrainin")]
- public TeachingRecordSystem.Core.Dqt.Models.dfeta_country dfeta_dfeta_country_dfeta_initialteachertrainin
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_inductionid")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_dfeta_induction_dfeta_integrationtransact")]
+ public TeachingRecordSystem.Core.Dqt.Models.dfeta_induction dfeta_dfeta_induction_dfeta_integrationtransact
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
- return this.GetRelatedEntity("dfeta_dfeta_country_dfeta_initialteachertrainin", null);
+ return this.GetRelatedEntity("dfeta_dfeta_induction_dfeta_integrationtransact", null);
}
[System.Diagnostics.DebuggerNonUserCode()]
set
{
- this.OnPropertyChanging("dfeta_dfeta_country_dfeta_initialteachertrainin");
- this.SetRelatedEntity("dfeta_dfeta_country_dfeta_initialteachertrainin", null, value);
- this.OnPropertyChanged("dfeta_dfeta_country_dfeta_initialteachertrainin");
+ this.OnPropertyChanging("dfeta_dfeta_induction_dfeta_integrationtransact");
+ this.SetRelatedEntity("dfeta_dfeta_induction_dfeta_integrationtransact", null, value);
+ this.OnPropertyChanged("dfeta_dfeta_induction_dfeta_integrationtransact");
}
}
///
- /// N:1 dfeta_dfeta_ittqualification_dfeta_initialteach
+ /// N:1 dfeta_dfeta_inductionperiod_dfeta_integrationtr
///
- [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_ittqualificationid")]
- [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_dfeta_ittqualification_dfeta_initialteach")]
- public TeachingRecordSystem.Core.Dqt.Models.dfeta_ittqualification dfeta_dfeta_ittqualification_dfeta_initialteach
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_inductionperiodid")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_dfeta_inductionperiod_dfeta_integrationtr")]
+ public TeachingRecordSystem.Core.Dqt.Models.dfeta_inductionperiod dfeta_dfeta_inductionperiod_dfeta_integrationtr
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
- return this.GetRelatedEntity("dfeta_dfeta_ittqualification_dfeta_initialteach", null);
+ return this.GetRelatedEntity("dfeta_dfeta_inductionperiod_dfeta_integrationtr", null);
}
[System.Diagnostics.DebuggerNonUserCode()]
set
{
- this.OnPropertyChanging("dfeta_dfeta_ittqualification_dfeta_initialteach");
- this.SetRelatedEntity("dfeta_dfeta_ittqualification_dfeta_initialteach", null, value);
- this.OnPropertyChanged("dfeta_dfeta_ittqualification_dfeta_initialteach");
+ this.OnPropertyChanging("dfeta_dfeta_inductionperiod_dfeta_integrationtr");
+ this.SetRelatedEntity("dfeta_dfeta_inductionperiod_dfeta_integrationtr", null, value);
+ this.OnPropertyChanged("dfeta_dfeta_inductionperiod_dfeta_integrationtr");
}
}
///
- /// N:1 dfeta_dfeta_ittsubject1_dfeta_initialteachertra
+ /// N:1 dfeta_dfeta_initialteachertraining_dfeta_integr
///
- [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_subject1id")]
- [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_dfeta_ittsubject1_dfeta_initialteachertra")]
- public TeachingRecordSystem.Core.Dqt.Models.dfeta_ittsubject dfeta_dfeta_ittsubject1_dfeta_initialteachertra
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_initialteachertrainingid")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_dfeta_initialteachertraining_dfeta_integr")]
+ public TeachingRecordSystem.Core.Dqt.Models.dfeta_initialteachertraining dfeta_dfeta_initialteachertraining_dfeta_integr
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
- return this.GetRelatedEntity("dfeta_dfeta_ittsubject1_dfeta_initialteachertra", null);
+ return this.GetRelatedEntity("dfeta_dfeta_initialteachertraining_dfeta_integr", null);
}
[System.Diagnostics.DebuggerNonUserCode()]
set
{
- this.OnPropertyChanging("dfeta_dfeta_ittsubject1_dfeta_initialteachertra");
- this.SetRelatedEntity("dfeta_dfeta_ittsubject1_dfeta_initialteachertra", null, value);
- this.OnPropertyChanged("dfeta_dfeta_ittsubject1_dfeta_initialteachertra");
+ this.OnPropertyChanging("dfeta_dfeta_initialteachertraining_dfeta_integr");
+ this.SetRelatedEntity("dfeta_dfeta_initialteachertraining_dfeta_integr", null, value);
+ this.OnPropertyChanged("dfeta_dfeta_initialteachertraining_dfeta_integr");
}
}
///
- /// N:1 dfeta_dfeta_ittsubject2_dfeta_initialteachertra
+ /// N:1 dfeta_dfeta_integrationtransaction_dfeta_integr
///
- [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_subject2id")]
- [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_dfeta_ittsubject2_dfeta_initialteachertra")]
- public TeachingRecordSystem.Core.Dqt.Models.dfeta_ittsubject dfeta_dfeta_ittsubject2_dfeta_initialteachertra
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_integrationtransactionid")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_dfeta_integrationtransaction_dfeta_integr")]
+ public TeachingRecordSystem.Core.Dqt.Models.dfeta_integrationtransaction dfeta_dfeta_integrationtransaction_dfeta_integr
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
- return this.GetRelatedEntity("dfeta_dfeta_ittsubject2_dfeta_initialteachertra", null);
+ return this.GetRelatedEntity("dfeta_dfeta_integrationtransaction_dfeta_integr", null);
}
[System.Diagnostics.DebuggerNonUserCode()]
set
{
- this.OnPropertyChanging("dfeta_dfeta_ittsubject2_dfeta_initialteachertra");
- this.SetRelatedEntity("dfeta_dfeta_ittsubject2_dfeta_initialteachertra", null, value);
- this.OnPropertyChanged("dfeta_dfeta_ittsubject2_dfeta_initialteachertra");
+ this.OnPropertyChanging("dfeta_dfeta_integrationtransaction_dfeta_integr");
+ this.SetRelatedEntity("dfeta_dfeta_integrationtransaction_dfeta_integr", null, value);
+ this.OnPropertyChanged("dfeta_dfeta_integrationtransaction_dfeta_integr");
}
}
///
- /// N:1 dfeta_dfeta_ittsubject3_dfeta_initialteachertra
+ /// N:1 dfeta_dfeta_qualification_dfeta_integrationtran
///
- [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_subject3id")]
- [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_dfeta_ittsubject3_dfeta_initialteachertra")]
- public TeachingRecordSystem.Core.Dqt.Models.dfeta_ittsubject dfeta_dfeta_ittsubject3_dfeta_initialteachertra
+ [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("dfeta_qualificationid")]
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_dfeta_qualification_dfeta_integrationtran")]
+ public TeachingRecordSystem.Core.Dqt.Models.dfeta_qualification dfeta_dfeta_qualification_dfeta_integrationtran
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
- return this.GetRelatedEntity("dfeta_dfeta_ittsubject3_dfeta_initialteachertra", null);
+ return this.GetRelatedEntity("dfeta_dfeta_qualification_dfeta_integrationtran", null);
}
[System.Diagnostics.DebuggerNonUserCode()]
set
{
- this.OnPropertyChanging("dfeta_dfeta_ittsubject3_dfeta_initialteachertra");
- this.SetRelatedEntity("dfeta_dfeta_ittsubject3_dfeta_initialteachertra", null, value);
- this.OnPropertyChanged("dfeta_dfeta_ittsubject3_dfeta_initialteachertra");
+ this.OnPropertyChanging("dfeta_dfeta_qualification_dfeta_integrationtran");
+ this.SetRelatedEntity("dfeta_dfeta_qualification_dfeta_integrationtran", null, value);
+ this.OnPropertyChanged("dfeta_dfeta_qualification_dfeta_integrationtran");
}
}
///
- /// N:1 lk_dfeta_initialteachertraining_createdby
+ /// N:1 lk_dfeta_integrationtransactionrecord_createdby
///
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")]
- [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_initialteachertraining_createdby")]
- public TeachingRecordSystem.Core.Dqt.Models.SystemUser lk_dfeta_initialteachertraining_createdby
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_integrationtransactionrecord_createdby")]
+ public TeachingRecordSystem.Core.Dqt.Models.SystemUser lk_dfeta_integrationtransactionrecord_createdby
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
- return this.GetRelatedEntity("lk_dfeta_initialteachertraining_createdby", null);
+ return this.GetRelatedEntity("lk_dfeta_integrationtransactionrecord_createdby", null);
}
[System.Diagnostics.DebuggerNonUserCode()]
set
{
- this.OnPropertyChanging("lk_dfeta_initialteachertraining_createdby");
- this.SetRelatedEntity("lk_dfeta_initialteachertraining_createdby", null, value);
- this.OnPropertyChanged("lk_dfeta_initialteachertraining_createdby");
+ this.OnPropertyChanging("lk_dfeta_integrationtransactionrecord_createdby");
+ this.SetRelatedEntity("lk_dfeta_integrationtransactionrecord_createdby", null, value);
+ this.OnPropertyChanged("lk_dfeta_integrationtransactionrecord_createdby");
}
}
///
- /// N:1 lk_dfeta_initialteachertraining_createdonbehalfby
+ /// N:1 lk_dfeta_integrationtransactionrecord_createdonbehalfby
///
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")]
- [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_initialteachertraining_createdonbehalfby")]
- public TeachingRecordSystem.Core.Dqt.Models.SystemUser lk_dfeta_initialteachertraining_createdonbehalfby
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_integrationtransactionrecord_createdonbehalfby")]
+ public TeachingRecordSystem.Core.Dqt.Models.SystemUser lk_dfeta_integrationtransactionrecord_createdonbehalfby
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
- return this.GetRelatedEntity("lk_dfeta_initialteachertraining_createdonbehalfby", null);
+ return this.GetRelatedEntity("lk_dfeta_integrationtransactionrecord_createdonbehalfby", null);
}
[System.Diagnostics.DebuggerNonUserCode()]
set
{
- this.OnPropertyChanging("lk_dfeta_initialteachertraining_createdonbehalfby");
- this.SetRelatedEntity("lk_dfeta_initialteachertraining_createdonbehalfby", null, value);
- this.OnPropertyChanged("lk_dfeta_initialteachertraining_createdonbehalfby");
+ this.OnPropertyChanging("lk_dfeta_integrationtransactionrecord_createdonbehalfby");
+ this.SetRelatedEntity("lk_dfeta_integrationtransactionrecord_createdonbehalfby", null, value);
+ this.OnPropertyChanged("lk_dfeta_integrationtransactionrecord_createdonbehalfby");
}
}
///
- /// N:1 lk_dfeta_initialteachertraining_modifiedby
+ /// N:1 lk_dfeta_integrationtransactionrecord_modifiedby
///
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")]
- [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_initialteachertraining_modifiedby")]
- public TeachingRecordSystem.Core.Dqt.Models.SystemUser lk_dfeta_initialteachertraining_modifiedby
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_integrationtransactionrecord_modifiedby")]
+ public TeachingRecordSystem.Core.Dqt.Models.SystemUser lk_dfeta_integrationtransactionrecord_modifiedby
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
- return this.GetRelatedEntity("lk_dfeta_initialteachertraining_modifiedby", null);
+ return this.GetRelatedEntity("lk_dfeta_integrationtransactionrecord_modifiedby", null);
}
[System.Diagnostics.DebuggerNonUserCode()]
set
{
- this.OnPropertyChanging("lk_dfeta_initialteachertraining_modifiedby");
- this.SetRelatedEntity("lk_dfeta_initialteachertraining_modifiedby", null, value);
- this.OnPropertyChanged("lk_dfeta_initialteachertraining_modifiedby");
+ this.OnPropertyChanging("lk_dfeta_integrationtransactionrecord_modifiedby");
+ this.SetRelatedEntity("lk_dfeta_integrationtransactionrecord_modifiedby", null, value);
+ this.OnPropertyChanged("lk_dfeta_integrationtransactionrecord_modifiedby");
}
}
///
- /// N:1 lk_dfeta_initialteachertraining_modifiedonbehalfby
+ /// N:1 lk_dfeta_integrationtransactionrecord_modifiedonbehalfby
///
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")]
- [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_initialteachertraining_modifiedonbehalfby")]
- public TeachingRecordSystem.Core.Dqt.Models.SystemUser lk_dfeta_initialteachertraining_modifiedonbehalfby
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_integrationtransactionrecord_modifiedonbehalfby")]
+ public TeachingRecordSystem.Core.Dqt.Models.SystemUser lk_dfeta_integrationtransactionrecord_modifiedonbehalfby
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
- return this.GetRelatedEntity("lk_dfeta_initialteachertraining_modifiedonbehalfby", null);
+ return this.GetRelatedEntity("lk_dfeta_integrationtransactionrecord_modifiedonbehalfby", null);
}
[System.Diagnostics.DebuggerNonUserCode()]
set
{
- this.OnPropertyChanging("lk_dfeta_initialteachertraining_modifiedonbehalfby");
- this.SetRelatedEntity("lk_dfeta_initialteachertraining_modifiedonbehalfby", null, value);
- this.OnPropertyChanged("lk_dfeta_initialteachertraining_modifiedonbehalfby");
+ this.OnPropertyChanging("lk_dfeta_integrationtransactionrecord_modifiedonbehalfby");
+ this.SetRelatedEntity("lk_dfeta_integrationtransactionrecord_modifiedonbehalfby", null, value);
+ this.OnPropertyChanged("lk_dfeta_integrationtransactionrecord_modifiedonbehalfby");
}
}
///
- /// N:1 user_dfeta_initialteachertraining
+ /// N:1 user_dfeta_integrationtransactionrecord
///
[Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")]
- [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_dfeta_initialteachertraining")]
- public TeachingRecordSystem.Core.Dqt.Models.SystemUser user_dfeta_initialteachertraining
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_dfeta_integrationtransactionrecord")]
+ public TeachingRecordSystem.Core.Dqt.Models.SystemUser user_dfeta_integrationtransactionrecord
{
[System.Diagnostics.DebuggerNonUserCode()]
get
{
- return this.GetRelatedEntity("user_dfeta_initialteachertraining", null);
+ return this.GetRelatedEntity("user_dfeta_integrationtransactionrecord", null);
}
[System.Diagnostics.DebuggerNonUserCode()]
set
{
- this.OnPropertyChanging("user_dfeta_initialteachertraining");
- this.SetRelatedEntity("user_dfeta_initialteachertraining", null, value);
- this.OnPropertyChanged("user_dfeta_initialteachertraining");
+ this.OnPropertyChanging("user_dfeta_integrationtransactionrecord");
+ this.SetRelatedEntity("user_dfeta_integrationtransactionrecord", null, value);
+ this.OnPropertyChanged("user_dfeta_integrationtransactionrecord");
}
}
}
@@ -9816,6 +11444,7 @@ public static class Fields
public const string ModifiedOn = "modifiedon";
public const string StateCode = "statecode";
public const string StatusCode = "statuscode";
+ public const string dfeta_dfeta_qualification_dfeta_integrationtran = "dfeta_dfeta_qualification_dfeta_integrationtran";
public const string business_unit_dfeta_qualification = "business_unit_dfeta_qualification";
public const string dfeta_account_dfeta_qualification_he = "dfeta_account_dfeta_qualification_he";
public const string dfeta_contact_dfeta_qualification = "dfeta_contact_dfeta_qualification";
@@ -10774,6 +12403,26 @@ public virtual dfeta_qualification_StatusCode? StatusCode
}
}
+ ///
+ /// 1:N dfeta_dfeta_qualification_dfeta_integrationtran
+ ///
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("dfeta_dfeta_qualification_dfeta_integrationtran")]
+ public System.Collections.Generic.IEnumerable dfeta_dfeta_qualification_dfeta_integrationtran
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntities("dfeta_dfeta_qualification_dfeta_integrationtran", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("dfeta_dfeta_qualification_dfeta_integrationtran");
+ this.SetRelatedEntities("dfeta_dfeta_qualification_dfeta_integrationtran", null, value);
+ this.OnPropertyChanged("dfeta_dfeta_qualification_dfeta_integrationtran");
+ }
+ }
+
///
/// N:1 business_unit_dfeta_qualification
///
@@ -20297,6 +21946,14 @@ public static class Fields
public const string lk_dfeta_initialteachertraining_createdonbehalfby = "lk_dfeta_initialteachertraining_createdonbehalfby";
public const string lk_dfeta_initialteachertraining_modifiedby = "lk_dfeta_initialteachertraining_modifiedby";
public const string lk_dfeta_initialteachertraining_modifiedonbehalfby = "lk_dfeta_initialteachertraining_modifiedonbehalfby";
+ public const string lk_dfeta_integrationtransaction_createdby = "lk_dfeta_integrationtransaction_createdby";
+ public const string lk_dfeta_integrationtransaction_createdonbehalfby = "lk_dfeta_integrationtransaction_createdonbehalfby";
+ public const string lk_dfeta_integrationtransaction_modifiedby = "lk_dfeta_integrationtransaction_modifiedby";
+ public const string lk_dfeta_integrationtransaction_modifiedonbehalfby = "lk_dfeta_integrationtransaction_modifiedonbehalfby";
+ public const string lk_dfeta_integrationtransactionrecord_createdby = "lk_dfeta_integrationtransactionrecord_createdby";
+ public const string lk_dfeta_integrationtransactionrecord_createdonbehalfby = "lk_dfeta_integrationtransactionrecord_createdonbehalfby";
+ public const string lk_dfeta_integrationtransactionrecord_modifiedby = "lk_dfeta_integrationtransactionrecord_modifiedby";
+ public const string lk_dfeta_integrationtransactionrecord_modifiedonbehalfby = "lk_dfeta_integrationtransactionrecord_modifiedonbehalfby";
public const string lk_dfeta_ittqualification_createdby = "lk_dfeta_ittqualification_createdby";
public const string lk_dfeta_ittqualification_createdonbehalfby = "lk_dfeta_ittqualification_createdonbehalfby";
public const string lk_dfeta_ittqualification_modifiedby = "lk_dfeta_ittqualification_modifiedby";
@@ -20396,6 +22053,8 @@ public static class Fields
public const string user_dfeta_induction = "user_dfeta_induction";
public const string user_dfeta_inductionperiod = "user_dfeta_inductionperiod";
public const string user_dfeta_initialteachertraining = "user_dfeta_initialteachertraining";
+ public const string user_dfeta_integrationtransaction = "user_dfeta_integrationtransaction";
+ public const string user_dfeta_integrationtransactionrecord = "user_dfeta_integrationtransactionrecord";
public const string user_dfeta_previousname = "user_dfeta_previousname";
public const string user_dfeta_qtsregistration = "user_dfeta_qtsregistration";
public const string user_dfeta_qualification = "user_dfeta_qualification";
@@ -21882,6 +23541,166 @@ public System.Collections.Generic.IEnumerable
+ /// 1:N lk_dfeta_integrationtransaction_createdby
+ ///
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_integrationtransaction_createdby")]
+ public System.Collections.Generic.IEnumerable lk_dfeta_integrationtransaction_createdby
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntities("lk_dfeta_integrationtransaction_createdby", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("lk_dfeta_integrationtransaction_createdby");
+ this.SetRelatedEntities("lk_dfeta_integrationtransaction_createdby", null, value);
+ this.OnPropertyChanged("lk_dfeta_integrationtransaction_createdby");
+ }
+ }
+
+ ///
+ /// 1:N lk_dfeta_integrationtransaction_createdonbehalfby
+ ///
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_integrationtransaction_createdonbehalfby")]
+ public System.Collections.Generic.IEnumerable lk_dfeta_integrationtransaction_createdonbehalfby
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntities("lk_dfeta_integrationtransaction_createdonbehalfby", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("lk_dfeta_integrationtransaction_createdonbehalfby");
+ this.SetRelatedEntities("lk_dfeta_integrationtransaction_createdonbehalfby", null, value);
+ this.OnPropertyChanged("lk_dfeta_integrationtransaction_createdonbehalfby");
+ }
+ }
+
+ ///
+ /// 1:N lk_dfeta_integrationtransaction_modifiedby
+ ///
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_integrationtransaction_modifiedby")]
+ public System.Collections.Generic.IEnumerable lk_dfeta_integrationtransaction_modifiedby
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntities("lk_dfeta_integrationtransaction_modifiedby", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("lk_dfeta_integrationtransaction_modifiedby");
+ this.SetRelatedEntities("lk_dfeta_integrationtransaction_modifiedby", null, value);
+ this.OnPropertyChanged("lk_dfeta_integrationtransaction_modifiedby");
+ }
+ }
+
+ ///
+ /// 1:N lk_dfeta_integrationtransaction_modifiedonbehalfby
+ ///
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_integrationtransaction_modifiedonbehalfby")]
+ public System.Collections.Generic.IEnumerable lk_dfeta_integrationtransaction_modifiedonbehalfby
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntities("lk_dfeta_integrationtransaction_modifiedonbehalfby", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("lk_dfeta_integrationtransaction_modifiedonbehalfby");
+ this.SetRelatedEntities("lk_dfeta_integrationtransaction_modifiedonbehalfby", null, value);
+ this.OnPropertyChanged("lk_dfeta_integrationtransaction_modifiedonbehalfby");
+ }
+ }
+
+ ///
+ /// 1:N lk_dfeta_integrationtransactionrecord_createdby
+ ///
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_integrationtransactionrecord_createdby")]
+ public System.Collections.Generic.IEnumerable lk_dfeta_integrationtransactionrecord_createdby
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntities("lk_dfeta_integrationtransactionrecord_createdby", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("lk_dfeta_integrationtransactionrecord_createdby");
+ this.SetRelatedEntities("lk_dfeta_integrationtransactionrecord_createdby", null, value);
+ this.OnPropertyChanged("lk_dfeta_integrationtransactionrecord_createdby");
+ }
+ }
+
+ ///
+ /// 1:N lk_dfeta_integrationtransactionrecord_createdonbehalfby
+ ///
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_integrationtransactionrecord_createdonbehalfby")]
+ public System.Collections.Generic.IEnumerable lk_dfeta_integrationtransactionrecord_createdonbehalfby
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntities("lk_dfeta_integrationtransactionrecord_createdonbehalfby", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("lk_dfeta_integrationtransactionrecord_createdonbehalfby");
+ this.SetRelatedEntities("lk_dfeta_integrationtransactionrecord_createdonbehalfby", null, value);
+ this.OnPropertyChanged("lk_dfeta_integrationtransactionrecord_createdonbehalfby");
+ }
+ }
+
+ ///
+ /// 1:N lk_dfeta_integrationtransactionrecord_modifiedby
+ ///
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_integrationtransactionrecord_modifiedby")]
+ public System.Collections.Generic.IEnumerable lk_dfeta_integrationtransactionrecord_modifiedby
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntities("lk_dfeta_integrationtransactionrecord_modifiedby", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("lk_dfeta_integrationtransactionrecord_modifiedby");
+ this.SetRelatedEntities("lk_dfeta_integrationtransactionrecord_modifiedby", null, value);
+ this.OnPropertyChanged("lk_dfeta_integrationtransactionrecord_modifiedby");
+ }
+ }
+
+ ///
+ /// 1:N lk_dfeta_integrationtransactionrecord_modifiedonbehalfby
+ ///
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_dfeta_integrationtransactionrecord_modifiedonbehalfby")]
+ public System.Collections.Generic.IEnumerable lk_dfeta_integrationtransactionrecord_modifiedonbehalfby
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntities("lk_dfeta_integrationtransactionrecord_modifiedonbehalfby", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("lk_dfeta_integrationtransactionrecord_modifiedonbehalfby");
+ this.SetRelatedEntities("lk_dfeta_integrationtransactionrecord_modifiedonbehalfby", null, value);
+ this.OnPropertyChanged("lk_dfeta_integrationtransactionrecord_modifiedonbehalfby");
+ }
+ }
+
///
/// 1:N lk_dfeta_ittqualification_createdby
///
@@ -23862,6 +25681,46 @@ public System.Collections.Generic.IEnumerable
+ /// 1:N user_dfeta_integrationtransaction
+ ///
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_dfeta_integrationtransaction")]
+ public System.Collections.Generic.IEnumerable user_dfeta_integrationtransaction
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntities("user_dfeta_integrationtransaction", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("user_dfeta_integrationtransaction");
+ this.SetRelatedEntities("user_dfeta_integrationtransaction", null, value);
+ this.OnPropertyChanged("user_dfeta_integrationtransaction");
+ }
+ }
+
+ ///
+ /// 1:N user_dfeta_integrationtransactionrecord
+ ///
+ [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("user_dfeta_integrationtransactionrecord")]
+ public System.Collections.Generic.IEnumerable user_dfeta_integrationtransactionrecord
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.GetRelatedEntities("user_dfeta_integrationtransactionrecord", null);
+ }
+ [System.Diagnostics.DebuggerNonUserCode()]
+ set
+ {
+ this.OnPropertyChanging("user_dfeta_integrationtransactionrecord");
+ this.SetRelatedEntities("user_dfeta_integrationtransactionrecord", null, value);
+ this.OnPropertyChanged("user_dfeta_integrationtransactionrecord");
+ }
+ }
+
///
/// 1:N user_dfeta_previousname
///
@@ -25164,6 +27023,30 @@ public System.Linq.IQueryable
+ /// Gets a binding to the set of all entities.
+ ///
+ public System.Linq.IQueryable dfeta_integrationtransactionSet
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.CreateQuery();
+ }
+ }
+
+ ///
+ /// Gets a binding to the set of all entities.
+ ///
+ public System.Linq.IQueryable dfeta_integrationtransactionrecordSet
+ {
+ [System.Diagnostics.DebuggerNonUserCode()]
+ get
+ {
+ return this.CreateQuery();
+ }
+ }
+
///
/// Gets a binding to the set of all entities.
///
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Models/GeneratedOptionSets.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Models/GeneratedOptionSets.cs
index a63c68c65..fa6a57921 100644
--- a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Models/GeneratedOptionSets.cs
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Models/GeneratedOptionSets.cs
@@ -1988,6 +1988,134 @@ public enum dfeta_initialteachertraining_StatusCode
Inactive = 2,
}
+ [System.Runtime.Serialization.DataContractAttribute()]
+ public enum dfeta_IntegrationInterface
+ {
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("Appropriate Body Import", 7)]
+ AppropriateBodyImport = 389040001,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("Capita Export Amend", 10)]
+ CapitaExportAmend = 389040004,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("Capita Export New", 9)]
+ CapitaExportNew = 389040003,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("Capita Import", 8)]
+ CapitaImport = 389040002,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("DMS Export QTS Date", 15)]
+ DMSExportQTSDate = 389040009,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("DMS Export TRN", 14)]
+ DMSExportTRN = 389040008,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("DMS Import", 13)]
+ DMSImport = 389040007,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("DMS Import TTR1", 0)]
+ DMSImportTTR1 = 389040014,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("DMS Import TTR4\\TTR5", 1)]
+ DMSImportTTR4TTR5 = 389040015,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("Edubase", 11)]
+ Edubase = 389040005,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("Edubase Links", 12)]
+ EdubaseLinks = 389040006,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("GTC Wales Import", 4)]
+ GTCWalesImport = 389040011,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("HESA Export", 3)]
+ HESAExport = 389040012,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("HESA Import", 6)]
+ HESAImport = 389040000,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("ITTPUpdate", 2)]
+ ITTPUpdate = 389040013,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("NPQ Export", 17, "#0000ff")]
+ NPQExport = 389040017,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("NPQ Import", 16, "#0000ff")]
+ NPQImport = 389040016,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("Training Provider Import", 5)]
+ TrainingProviderImport = 389040010,
+ }
+
+ [System.Runtime.Serialization.DataContractAttribute()]
+ public enum dfeta_integrationtransaction_StatusCode
+ {
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("Active", 0)]
+ Active = 1,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("Inactive", 1)]
+ Inactive = 2,
+ }
+
+ [System.Runtime.Serialization.DataContractAttribute()]
+ public enum dfeta_integrationtransactionrecord_dfeta_DuplicateStatus
+ {
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("Duplicate", 0)]
+ Duplicate = 389040000,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("Duplicate Resolved", 1)]
+ DuplicateResolved = 389040002,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("Not Applicable", 3)]
+ NotApplicable = 389040003,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("Third Party Notified", 2)]
+ ThirdPartyNotified = 389040001,
+ }
+
+ [System.Runtime.Serialization.DataContractAttribute()]
+ public enum dfeta_integrationtransactionrecord_StatusCode
+ {
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("Fail", 1)]
+ Fail = 389040000,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("Inactive", 2)]
+ Inactive = 2,
+
+ [System.Runtime.Serialization.EnumMemberAttribute()]
+ [OptionSetMetadataAttribute("Success", 0)]
+ Success = 1,
+ }
+
[System.Runtime.Serialization.DataContractAttribute()]
public enum dfeta_ITTProgrammeType
{
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateHeQualificationTransactionalQuery.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateHeQualificationTransactionalQuery.cs
new file mode 100644
index 000000000..e328078ac
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateHeQualificationTransactionalQuery.cs
@@ -0,0 +1,17 @@
+namespace TeachingRecordSystem.Core.Dqt.Queries;
+
+public record CreateHeQualificationTransactionalQuery : ICrmTransactionalQuery
+{
+ public required Guid Id { get; init; }
+ public required Guid ContactId { get; init; }
+ public required Guid? HECountryId { get; init; }
+ public required string? HECourseLength { get; init; }
+ public required Guid? HEEstablishmentId { get; init; }
+ public required Guid? HEQualificationId { get; init; }
+ public required dfeta_classdivision? HEClassDivision { get; init; }
+ public required Guid? HESubject1id { get; init; }
+ public required Guid? HESubject2id { get; init; }
+ public required Guid? HESubject3id { get; init; }
+ public required dfeta_qualification_dfeta_Type? Type { get; init; }
+}
+
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateInductionPeriodTransactionalQuery.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateInductionPeriodTransactionalQuery.cs
new file mode 100644
index 000000000..3e7e76fc0
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateInductionPeriodTransactionalQuery.cs
@@ -0,0 +1,10 @@
+namespace TeachingRecordSystem.Core.Dqt.Queries;
+
+public record CreateInductionPeriodTransactionalQuery : ICrmTransactionalQuery
+{
+ public required Guid Id { get; init; }
+ public required Guid InductionId { get; init; }
+ public required Guid? AppropriateBodyId { get; init; }
+ public required DateTime? InductionStartDate { get; init; }
+ public required DateTime? InductionEndDate { get; init; }
+}
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateInductionTransactionalQuery.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateInductionTransactionalQuery.cs
new file mode 100644
index 000000000..530461c1d
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateInductionTransactionalQuery.cs
@@ -0,0 +1,10 @@
+namespace TeachingRecordSystem.Core.Dqt.Queries;
+
+public record CreateInductionTransactionalQuery : ICrmTransactionalQuery
+{
+ public required Guid Id { get; init; }
+ public required Guid ContactId { get; init; }
+ public required DateTime? StartDate { get; init; }
+ public required DateTime? CompletionDate { get; init; }
+ public required dfeta_InductionStatus InductionStatus { get; init; }
+}
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateInitialTeacherTrainingTransactionalQuery.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateInitialTeacherTrainingTransactionalQuery.cs
new file mode 100644
index 000000000..8894fcdac
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateInitialTeacherTrainingTransactionalQuery.cs
@@ -0,0 +1,10 @@
+namespace TeachingRecordSystem.Core.Dqt.Queries;
+
+public record CreateInitialTeacherTrainingTransactionalQuery : ICrmTransactionalQuery
+{
+ public Guid Id { get; set; }
+ public required Guid ContactId { get; init; }
+ public required Guid? CountryId { get; init; }
+ public required Guid? ITTQualificationId { get; init; }
+ public required dfeta_ITTResult Result { get; init; }
+}
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateIntegrationTransactionQuery.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateIntegrationTransactionQuery.cs
new file mode 100644
index 000000000..fc31de15e
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateIntegrationTransactionQuery.cs
@@ -0,0 +1,8 @@
+namespace TeachingRecordSystem.Core.Dqt.Queries;
+
+public record CreateIntegrationTransactionQuery : ICrmQuery
+{
+ public required int TypeId { get; init; }
+ public required DateTime StartDate { get; init; }
+ public required string? FileName { get; init; }
+}
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateIntegrationTransactionRecordTransactionalQuery.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateIntegrationTransactionRecordTransactionalQuery.cs
new file mode 100644
index 000000000..c99fe77a0
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateIntegrationTransactionRecordTransactionalQuery.cs
@@ -0,0 +1,17 @@
+namespace TeachingRecordSystem.Core.Dqt.Queries;
+
+public record CreateIntegrationTransactionRecordTransactionalQuery : ICrmTransactionalQuery
+{
+ public required Guid IntegrationTransactionId { get; init; }
+ public required string? Reference { get; init; }
+ public required Guid? ContactId { get; init; }
+ public required Guid? InitialTeacherTrainingId { get; init; }
+ public required Guid? QualificationId { get; init; }
+ public required Guid? InductionId { get; init; }
+ public required Guid? InductionPeriodId { get; init; }
+ public required dfeta_integrationtransactionrecord_dfeta_DuplicateStatus? DuplicateStatus { get; init; }
+ public required dfeta_integrationtransactionrecord_StatusCode? StatusCode { get; init; }
+ public required string? FailureMessage { get; init; }
+ public required string? RowData { get; init; }
+ public required string? FileName { get; set; }
+}
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateQtsRegistrationTransactionalQuery.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateQtsRegistrationTransactionalQuery.cs
new file mode 100644
index 000000000..ca3ce7d55
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateQtsRegistrationTransactionalQuery.cs
@@ -0,0 +1,9 @@
+namespace TeachingRecordSystem.Core.Dqt.Queries;
+
+public record CreateQtsRegistrationTransactionalQuery : ICrmTransactionalQuery
+{
+ public required Guid Id { get; init; }
+ public required Guid ContactId { get; init; }
+ public required Guid TeacherStatusId { get; init; }
+ public required DateTime? QtsDate { get; init; }
+}
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateTaskTransactionalQuery.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateTaskTransactionalQuery.cs
new file mode 100644
index 000000000..22b710771
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/CreateTaskTransactionalQuery.cs
@@ -0,0 +1,10 @@
+namespace TeachingRecordSystem.Core.Dqt.Queries;
+
+public record CreateTaskTransactionalQuery : ICrmTransactionalQuery
+{
+ public required Guid ContactId { get; init; }
+ public required string Category { get; init; }
+ public required string Subject { get; init; }
+ public required string Description { get; init; }
+ public required DateTime? ScheduledEnd { get; init; }
+}
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/FindActiveOrganisationsByOrgNumberQuery.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/FindActiveOrganisationsByOrgNumberQuery.cs
new file mode 100644
index 000000000..de15d227b
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/FindActiveOrganisationsByOrgNumberQuery.cs
@@ -0,0 +1,3 @@
+namespace TeachingRecordSystem.Core.Dqt.Queries;
+
+public record FindActiveOrganisationsByAccountNumberQuery(string AccountNumber) : ICrmQuery;
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/GetActiveInitialTeacherTrainingsByContactIdQuery.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/GetActiveInitialTeacherTrainingsByContactIdQuery.cs
new file mode 100644
index 000000000..302778e38
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/GetActiveInitialTeacherTrainingsByContactIdQuery.cs
@@ -0,0 +1,4 @@
+namespace TeachingRecordSystem.Core.Dqt.Queries;
+
+public record GetActiveInitialTeacherTrainingsByContactIdQuery(Guid ContactId) :
+ ICrmQuery;
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/GetAllActiveIttQualificationsQuery.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/GetAllActiveIttQualificationsQuery.cs
new file mode 100644
index 000000000..006745332
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/GetAllActiveIttQualificationsQuery.cs
@@ -0,0 +1,3 @@
+namespace TeachingRecordSystem.Core.Dqt.Queries;
+
+public record GetAllActiveIttQualificationsQuery : ICrmQuery;
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/GetAllActiveIttSubjectsQuery.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/GetAllActiveIttSubjectsQuery.cs
new file mode 100644
index 000000000..d1fca9c61
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/GetAllActiveIttSubjectsQuery.cs
@@ -0,0 +1,3 @@
+using TeachingRecordSystem.Core.Dqt;
+
+public record GetAllActiveIttSubjectsQuery : ICrmQuery;
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/GetAllCountriesQuery.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/GetAllCountriesQuery.cs
new file mode 100644
index 000000000..bcbfee606
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/GetAllCountriesQuery.cs
@@ -0,0 +1,3 @@
+namespace TeachingRecordSystem.Core.Dqt.Queries;
+
+public record GetAllCountriesQuery : ICrmQuery;
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/UpdateInductionPeriodTransactionalQuery.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/UpdateInductionPeriodTransactionalQuery.cs
new file mode 100644
index 000000000..bc3ab25cb
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/UpdateInductionPeriodTransactionalQuery.cs
@@ -0,0 +1,9 @@
+namespace TeachingRecordSystem.Core.Dqt.Queries;
+
+public record UpdateInductionPeriodTransactionalQuery : ICrmTransactionalQuery
+{
+ public required Guid InductionPeriodId { get; init; }
+ public required Guid? AppropriateBodyId { get; init; }
+ public required DateTime? InductionStartDate { get; init; }
+ public required DateTime? InductionEndDate { get; init; }
+}
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/UpdateInductionTransactionalQuery.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/UpdateInductionTransactionalQuery.cs
new file mode 100644
index 000000000..8738aa9c8
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/UpdateInductionTransactionalQuery.cs
@@ -0,0 +1,8 @@
+namespace TeachingRecordSystem.Core.Dqt.Queries;
+
+public record UpdateInductionTransactionalQuery : ICrmTransactionalQuery
+{
+ public required Guid InductionId { get; init; }
+ public required DateTime? CompletionDate { get; init; }
+ public required dfeta_InductionStatus InductionStatus { get; init; }
+}
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/UpdateIntegrationTransactionRecordTransactionalQuery.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/UpdateIntegrationTransactionRecordTransactionalQuery.cs
new file mode 100644
index 000000000..66bb714d7
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/UpdateIntegrationTransactionRecordTransactionalQuery.cs
@@ -0,0 +1,17 @@
+namespace TeachingRecordSystem.Core.Dqt.Queries;
+
+public record UpdateIntegrationTransactionRecordTransactionalQuery : ICrmTransactionalQuery
+{
+ public required Guid IntegrationTransactionRecordId { get; init; }
+ public required Guid IntegrationTransactionId { get; init; }
+ public required string? Reference { get; init; }
+ public required Guid? PersonId { get; init; }
+ public required Guid? InitialTeacherTrainingId { get; init; }
+ public required Guid? QualificationId { get; init; }
+ public required Guid? InductionId { get; init; }
+ public required Guid? InductionPeriodId { get; init; }
+ public required dfeta_integrationtransactionrecord_dfeta_DuplicateStatus? DuplicateStatus { get; init; }
+ public required dfeta_integrationtransactionrecord_StatusCode? StatusCode { get; init; }
+ public required string? FailureMessage { get; init; }
+ public required string? RowData { get; init; }
+}
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/UpdateIntegrationTransactionTransactionalQuery.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/UpdateIntegrationTransactionTransactionalQuery.cs
new file mode 100644
index 000000000..59ad3418c
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/Queries/UpdateIntegrationTransactionTransactionalQuery.cs
@@ -0,0 +1,12 @@
+namespace TeachingRecordSystem.Core.Dqt.Queries;
+
+public record UpdateIntegrationTransactionTransactionalQuery : ICrmTransactionalQuery
+{
+ public required Guid IntegrationTransactionId { get; init; }
+ public required DateTime? EndDate { get; init; }
+ public required int? TotalCount { get; init; }
+ public required int? SuccessCount { get; init; }
+ public required int? DuplicateCount { get; init; }
+ public required int? FailureCount { get; init; }
+ public required string? FailureMessage { get; init; }
+}
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateHeQualificationTransactionalHandler.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateHeQualificationTransactionalHandler.cs
new file mode 100644
index 000000000..8808ceabe
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateHeQualificationTransactionalHandler.cs
@@ -0,0 +1,28 @@
+using Microsoft.Xrm.Sdk.Messages;
+using TeachingRecordSystem.Core.Dqt.Queries;
+
+namespace TeachingRecordSystem.Core.Dqt.QueryHandlers;
+
+public class CreateHeQualificationTransactionalHandler : ICrmTransactionalQueryHandler
+{
+ public Func AppendQuery(CreateHeQualificationTransactionalQuery query, RequestBuilder requestBuilder)
+ {
+ var createResponse = requestBuilder.AddRequest(new CreateRequest()
+ {
+ Target = new dfeta_qualification()
+ {
+ Id = query.Id,
+ dfeta_HE_CountryId = query.HECountryId?.ToEntityReference(dfeta_country.EntityLogicalName),
+ dfeta_HE_ClassDivision = query.HEClassDivision,
+ dfeta_HE_HEQualificationId = query.HEQualificationId?.ToEntityReference(dfeta_hequalification.EntityLogicalName),
+ dfeta_Type = query.Type,
+ dfeta_PersonId = query.ContactId.ToEntityReference(Contact.EntityLogicalName),
+ dfeta_HE_EstablishmentId = query.HEEstablishmentId?.ToEntityReference(Account.EntityLogicalName),
+ dfeta_HE_HESubject1Id = query.HESubject1id?.ToEntityReference(dfeta_hesubject.EntityLogicalName),
+ dfeta_HE_HESubject2Id = query.HESubject2id?.ToEntityReference(dfeta_hesubject.EntityLogicalName),
+ dfeta_HE_HESubject3Id = query.HESubject3id?.ToEntityReference(dfeta_hesubject.EntityLogicalName),
+ }
+ });
+ return () => createResponse.GetResponse().id;
+ }
+}
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateInductionPeriodTransactionalHandler.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateInductionPeriodTransactionalHandler.cs
new file mode 100644
index 000000000..6dbeab6a2
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateInductionPeriodTransactionalHandler.cs
@@ -0,0 +1,24 @@
+using Microsoft.Xrm.Sdk.Messages;
+using TeachingRecordSystem.Core.Dqt.Queries;
+
+namespace TeachingRecordSystem.Core.Dqt.QueryHandlers;
+
+public class CreateInductionPeriodTransactionalHandler : ICrmTransactionalQueryHandler
+{
+ public Func AppendQuery(CreateInductionPeriodTransactionalQuery query, RequestBuilder requestBuilder)
+ {
+ var createResponse = requestBuilder.AddRequest(new CreateRequest()
+ {
+ Target = new dfeta_inductionperiod()
+ {
+ Id = query.Id,
+ dfeta_InductionId = query.InductionId.ToEntityReference(dfeta_induction.EntityLogicalName),
+ dfeta_AppropriateBodyId = query.AppropriateBodyId?.ToEntityReference(Account.EntityLogicalName),
+ dfeta_StartDate = query.InductionStartDate,
+ dfeta_EndDate = query.InductionEndDate,
+ }
+ });
+
+ return () => createResponse.GetResponse().id;
+ }
+}
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateInductionTransactionalHandler.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateInductionTransactionalHandler.cs
new file mode 100644
index 000000000..0a418ba51
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateInductionTransactionalHandler.cs
@@ -0,0 +1,23 @@
+using Microsoft.Xrm.Sdk.Messages;
+using TeachingRecordSystem.Core.Dqt.Queries;
+
+namespace TeachingRecordSystem.Core.Dqt.QueryHandlers;
+
+public class CreateInductionTransactionalHandler : ICrmTransactionalQueryHandler
+{
+ public Func AppendQuery(CreateInductionTransactionalQuery query, RequestBuilder requestBuilder)
+ {
+ var createResponse = requestBuilder.AddRequest(new CreateRequest()
+ {
+ Target = new dfeta_induction()
+ {
+ Id = query.Id,
+ dfeta_PersonId = query.ContactId.ToEntityReference(Contact.EntityLogicalName),
+ dfeta_StartDate = query.StartDate,
+ dfeta_CompletionDate = query.CompletionDate,
+ dfeta_InductionStatus = query.InductionStatus,
+ }
+ });
+ return () => createResponse.GetResponse().id;
+ }
+}
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateInitialTeacherTrainingTransactionalHandler.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateInitialTeacherTrainingTransactionalHandler.cs
new file mode 100644
index 000000000..63d69101c
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateInitialTeacherTrainingTransactionalHandler.cs
@@ -0,0 +1,23 @@
+using Microsoft.Xrm.Sdk.Messages;
+using TeachingRecordSystem.Core.Dqt.Queries;
+
+namespace TeachingRecordSystem.Core.Dqt.QueryHandlers;
+
+public class CreateInitialTeacherTrainingTransactionalHandler : ICrmTransactionalQueryHandler
+{
+ public Func AppendQuery(CreateInitialTeacherTrainingTransactionalQuery query, RequestBuilder requestBuilder)
+ {
+ var createResponse = requestBuilder.AddRequest(new CreateRequest()
+ {
+ Target = new dfeta_initialteachertraining()
+ {
+ Id = query.Id,
+ dfeta_PersonId = query.ContactId.ToEntityReference(Contact.EntityLogicalName),
+ dfeta_CountryId = query.CountryId?.ToEntityReference(dfeta_country.EntityLogicalName),
+ dfeta_ITTQualificationId = query.ITTQualificationId?.ToEntityReference(dfeta_qualification.EntityLogicalName),
+ dfeta_Result = query.Result
+ }
+ });
+ return () => createResponse.GetResponse().id;
+ }
+}
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateIntegrationTransactionRecordTransactionalHandler.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateIntegrationTransactionRecordTransactionalHandler.cs
new file mode 100644
index 000000000..6f98f9a3f
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateIntegrationTransactionRecordTransactionalHandler.cs
@@ -0,0 +1,31 @@
+using Microsoft.Xrm.Sdk.Messages;
+using TeachingRecordSystem.Core.Dqt.Queries;
+
+namespace TeachingRecordSystem.Core.Dqt.QueryHandlers;
+
+public class CreateIntegrationTransactionRecordTransactionalHandler : ICrmTransactionalQueryHandler
+{
+ public Func AppendQuery(CreateIntegrationTransactionRecordTransactionalQuery query, RequestBuilder requestBuilder)
+ {
+ var createResponse = requestBuilder.AddRequest(new CreateRequest()
+ {
+ Target = new dfeta_integrationtransactionrecord()
+ {
+ dfeta_IntegrationTransactionId = query.IntegrationTransactionId.ToEntityReference(dfeta_integrationtransaction.EntityLogicalName),
+ dfeta_id = query.Reference,
+ dfeta_PersonId = query.ContactId?.ToEntityReference(Contact.EntityLogicalName),
+ dfeta_InitialTeacherTrainingId = query.InitialTeacherTrainingId?.ToEntityReference(dfeta_initialteachertraining.EntityLogicalName),
+ dfeta_QualificationId = query.QualificationId?.ToEntityReference(dfeta_qualification.EntityLogicalName),
+ dfeta_InductionId = query.InductionId?.ToEntityReference(dfeta_induction.EntityLogicalName),
+ dfeta_InductionPeriodId = query.InductionPeriodId?.ToEntityReference(dfeta_inductionperiod.EntityLogicalName),
+ dfeta_DuplicateStatus = query.DuplicateStatus,
+ StatusCode = query.StatusCode,
+ dfeta_FailureMessage = query.FailureMessage,
+ dfeta_RowData = query.RowData,
+ dfeta_Filename = query.FileName
+ }
+ });
+
+ return () => createResponse.GetResponse().id;
+ }
+}
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateIntegrationTransactionTransactionalHandler.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateIntegrationTransactionTransactionalHandler.cs
new file mode 100644
index 000000000..191e1a3ef
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateIntegrationTransactionTransactionalHandler.cs
@@ -0,0 +1,19 @@
+using Microsoft.PowerPlatform.Dataverse.Client;
+using TeachingRecordSystem.Core.Dqt.Queries;
+
+namespace TeachingRecordSystem.Core.Dqt.QueryHandlers;
+
+public class CreateIntegrationTransactionTransactionalHandler : ICrmQueryHandler
+{
+ public async Task ExecuteAsync(CreateIntegrationTransactionQuery query, IOrganizationServiceAsync organizationService)
+ {
+ var integrationTransactionId = await organizationService.CreateAsync(new dfeta_integrationtransaction()
+ {
+ Id = Guid.NewGuid(),
+ dfeta_Interface = dfeta_IntegrationInterface.GTCWalesImport,
+ dfeta_StartDate = query.StartDate,
+ dfeta_Filename = query.FileName
+ });
+ return integrationTransactionId;
+ }
+}
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateQtsRegistrationTransactionalHandler.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateQtsRegistrationTransactionalHandler.cs
new file mode 100644
index 000000000..0cffb489d
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateQtsRegistrationTransactionalHandler.cs
@@ -0,0 +1,23 @@
+using Microsoft.Xrm.Sdk.Messages;
+using TeachingRecordSystem.Core.Dqt.Queries;
+
+namespace TeachingRecordSystem.Core.Dqt.QueryHandlers;
+
+public class CreateQtsRegistrationTransactionalHandler : ICrmTransactionalQueryHandler
+{
+ public Func AppendQuery(CreateQtsRegistrationTransactionalQuery query, RequestBuilder requestBuilder)
+ {
+ var createResponse = requestBuilder.AddRequest(new CreateRequest()
+ {
+ Target = new dfeta_qtsregistration()
+ {
+ Id = query.Id,
+ dfeta_PersonId = query.ContactId.ToEntityReference(Contact.EntityLogicalName),
+ dfeta_TeacherStatusId = query.TeacherStatusId.ToEntityReference(dfeta_teacherstatus.EntityLogicalName),
+ dfeta_QTSDate = query.QtsDate
+ }
+ });
+
+ return () => createResponse.GetResponse().id;
+ }
+}
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateTaskTransactionalHandler.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateTaskTransactionalHandler.cs
new file mode 100644
index 000000000..fc9d97257
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/CreateTaskTransactionalHandler.cs
@@ -0,0 +1,24 @@
+using Microsoft.Xrm.Sdk.Messages;
+using TeachingRecordSystem.Core.Dqt.Queries;
+
+namespace TeachingRecordSystem.Core.Dqt.QueryHandlers;
+
+public class CreateTaskTransactionalHandler : ICrmTransactionalQueryHandler
+{
+ public Func AppendQuery(CreateTaskTransactionalQuery query, RequestBuilder requestBuilder)
+ {
+ var createResponse = requestBuilder.AddRequest(new CreateRequest()
+ {
+ Target = new CrmTask()
+ {
+ RegardingObjectId = query.ContactId.ToEntityReference(Contact.EntityLogicalName),
+ Category = query.Category,
+ Subject = query.Subject,
+ Description = query.Description,
+ ScheduledEnd = query.ScheduledEnd
+ }
+ });
+
+ return () => createResponse.GetResponse().id;
+ }
+}
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/FindActiveOrganisationsByAccountNumberHandler.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/FindActiveOrganisationsByAccountNumberHandler.cs
new file mode 100644
index 000000000..8c71a6020
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/FindActiveOrganisationsByAccountNumberHandler.cs
@@ -0,0 +1,32 @@
+using Microsoft.PowerPlatform.Dataverse.Client;
+using Microsoft.Xrm.Sdk.Messages;
+using Microsoft.Xrm.Sdk.Query;
+using TeachingRecordSystem.Core.Dqt.Queries;
+
+namespace TeachingRecordSystem.Core.Dqt.QueryHandlers;
+
+public class FindActiveOrganisationsByAccountNumberHandler : ICrmQueryHandler
+{
+ public async Task ExecuteAsync(FindActiveOrganisationsByAccountNumberQuery query, IOrganizationServiceAsync organizationService)
+ {
+ var queryExpression = new QueryExpression()
+ {
+ EntityName = Account.EntityLogicalName,
+ ColumnSet = new ColumnSet(
+ Account.Fields.AccountNumber,
+ Account.Fields.Name)
+ };
+
+ queryExpression.Criteria.AddCondition(Account.Fields.AccountNumber, ConditionOperator.Equal, query.AccountNumber);
+ queryExpression.Criteria.AddCondition(Account.Fields.StateCode, ConditionOperator.Equal, (int)AccountState.Active);
+
+ var request = new RetrieveMultipleRequest()
+ {
+ Query = queryExpression
+ };
+
+ var response = await organizationService.RetrieveMultipleAsync(queryExpression);
+
+ return response.Entities.Select(e => e.ToEntity()).ToArray();
+ }
+}
diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/GetAllActiveIttQualificationsHandler.cs b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/GetAllActiveIttQualificationsHandler.cs
new file mode 100644
index 000000000..8cc5f4022
--- /dev/null
+++ b/TeachingRecordSystem/src/TeachingRecordSystem.Core/Dqt/QueryHandlers/GetAllActiveIttQualificationsHandler.cs
@@ -0,0 +1,31 @@
+using Microsoft.PowerPlatform.Dataverse.Client;
+using Microsoft.Xrm.Sdk.Messages;
+using Microsoft.Xrm.Sdk.Query;
+using TeachingRecordSystem.Core.Dqt.Queries;
+
+namespace TeachingRecordSystem.Core.Dqt.QueryHandlers;
+
+public class GetAllActiveIttQualificationsHandler : ICrmQueryHandler
+{
+ public async Task ExecuteAsync(GetAllActiveIttQualificationsQuery query, IOrganizationServiceAsync organizationService)
+ {
+ var queryExpression = new QueryExpression()
+ {
+ EntityName = dfeta_ittqualification.EntityLogicalName,
+ ColumnSet = new ColumnSet(
+ dfeta_ittqualification.Fields.dfeta_name,
+ dfeta_ittqualification.Fields.dfeta_Value)
+ };
+
+ queryExpression.Criteria.AddCondition(dfeta_ittqualification.Fields.StateCode, ConditionOperator.Equal, (int)dfeta_ittqualificationState.Active);
+
+ var request = new RetrieveMultipleRequest()
+ {
+ Query = queryExpression
+ };
+
+ var response = await organizationService.RetrieveMultipleAsync(queryExpression);
+
+ return response.Entities.Select(e => e.ToEntity