diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceCharacterReference.vue b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceCharacterReference.vue index 168aeb346..2dab4210f 100644 --- a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceCharacterReference.vue +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/inputs/EceCharacterReference.vue @@ -46,6 +46,7 @@ label="Phone Number (Optional)" variant="outlined" color="primary" + type="number" maxlength="100" @update:model-value="updateCharacterReference()" > diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/types/openapi.d.ts b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/types/openapi.d.ts index b1ee09b34..b9373b9dc 100644 --- a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/types/openapi.d.ts +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/types/openapi.d.ts @@ -186,7 +186,8 @@ declare namespace Paths { export type RequestBody = /* Submit application request */ Components.Schemas.ApplicationSubmissionRequest; namespace Responses { export type $200 = Components.Schemas.SubmitApplicationResponse; - export type $400 = string; + export type $400 = Components.Schemas.ProblemDetails | Components.Schemas.HttpValidationProblemDetails; + export interface $404 {} } } namespace ConfigurationGet { diff --git a/src/ECER.Utilities.DataverseSdk/Model/EcerContext.cs b/src/ECER.Utilities.DataverseSdk/Model/EcerContext.cs index 78177ec30..ddd34ebed 100644 --- a/src/ECER.Utilities.DataverseSdk/Model/EcerContext.cs +++ b/src/ECER.Utilities.DataverseSdk/Model/EcerContext.cs @@ -458,6 +458,61 @@ public System.Linq.IQueryable + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ecer_PostSecondaryInstituteCampusSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ecer_PostSecondaryInstituteInterviewSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ecer_PostSecondaryInstituteProgramApplicaitonSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ecer_PostSecondaryInstituteProgramProfileSet + { + get + { + return this.CreateQuery(); + } + } + + /// + /// Gets a binding to the set of all entities. + /// + public System.Linq.IQueryable ecer_PostSecondaryInstituteSiteVisitSet + { + get + { + return this.CreateQuery(); + } + } + /// /// Gets a binding to the set of all entities. /// diff --git a/src/ECER.Utilities.DataverseSdk/Model/Entities/ECER_PostsecondaryInstitute.cs b/src/ECER.Utilities.DataverseSdk/Model/Entities/ECER_PostsecondaryInstitute.cs index 2853ed92e..9f077765d 100644 --- a/src/ECER.Utilities.DataverseSdk/Model/Entities/ECER_PostsecondaryInstitute.cs +++ b/src/ECER.Utilities.DataverseSdk/Model/Entities/ECER_PostsecondaryInstitute.cs @@ -62,6 +62,9 @@ public partial class Fields public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; public const string ecer_Auspice = "ecer_auspice"; public const string ecer_auspiceName = "ecer_auspicename"; + public const string ecer_City = "ecer_city"; + public const string ecer_Country = "ecer_country"; + public const string ecer_IdNumber = "ecer_idnumber"; public const string ecer_Name = "ecer_name"; public const string ecer_OfferBasicECE = "ecer_offerbasicece"; public const string ecer_offerbasiceceName = "ecer_offerbasicecename"; @@ -71,6 +74,16 @@ public partial class Fields public const string ecer_offersneName = "ecer_offersnename"; public const string ecer_PostSecondaryInstituteId = "ecer_postsecondaryinstituteid"; public const string Id = "ecer_postsecondaryinstituteid"; + public const string ecer_postsecondaryinstituteprogramapplicaiton_ = "ecer_postsecondaryinstituteprogramapplicaiton_"; + public const string ecer_postsecondaryinstituteprogramprofile_Post = "ecer_postsecondaryinstituteprogramprofile_Post"; + public const string ecer_PSIInstitutionType = "ecer_psiinstitutiontype"; + public const string ecer_psiinstitutiontypeName = "ecer_psiinstitutiontypename"; + public const string ecer_StateProvince = "ecer_stateprovince"; + public const string ecer_Street1 = "ecer_street1"; + public const string ecer_Street2 = "ecer_street2"; + public const string ecer_Street3 = "ecer_street3"; + public const string ecer_Website = "ecer_website"; + public const string ecer_ZipPostalCode = "ecer_zippostalcode"; public const string EmailAddress = "emailaddress"; public const string ImportSequenceNumber = "importsequencenumber"; public const string ModifiedBy = "modifiedby"; @@ -280,6 +293,54 @@ public string ecer_auspiceName } } + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_city")] + public string ecer_City + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("ecer_city"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_city", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_country")] + public string ecer_Country + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("ecer_country"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_country", value); + } + } + + /// + /// PSI ID Number + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_idnumber")] + public string ecer_IdNumber + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("ecer_idnumber"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_idnumber", value); + } + } + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_name")] public string ecer_Name { @@ -432,6 +493,128 @@ public override System.Guid Id } } + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_psiinstitutiontype")] + public virtual ecer_PSIInstitutionType? ecer_PSIInstitutionType + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return ((ecer_PSIInstitutionType?)(EntityOptionSetEnum.GetEnum(this, "ecer_psiinstitutiontype"))); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_psiinstitutiontype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_psiinstitutiontypename")] + public string ecer_psiinstitutiontypeName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("ecer_psiinstitutiontype")) + { + return this.FormattedValues["ecer_psiinstitutiontype"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_stateprovince")] + public string ecer_StateProvince + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("ecer_stateprovince"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_stateprovince", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_street1")] + public string ecer_Street1 + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("ecer_street1"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_street1", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_street2")] + public string ecer_Street2 + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("ecer_street2"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_street2", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_street3")] + public string ecer_Street3 + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("ecer_street3"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_street3", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_website")] + public string ecer_Website + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("ecer_website"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_website", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_zippostalcode")] + public string ecer_ZipPostalCode + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("ecer_zippostalcode"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_zippostalcode", value); + } + } + /// /// The primary email address for the entity. /// @@ -831,6 +1014,42 @@ public System.Nullable VersionNumber } } + /// + /// 1:N ecer_postsecondaryinstituteprogramapplicaiton_ + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ecer_postsecondaryinstituteprogramapplicaiton_")] + public System.Collections.Generic.IEnumerable ecer_postsecondaryinstituteprogramapplicaiton_ + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetRelatedEntities("ecer_postsecondaryinstituteprogramapplicaiton_", null); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetRelatedEntities("ecer_postsecondaryinstituteprogramapplicaiton_", null, value); + } + } + + /// + /// 1:N ecer_postsecondaryinstituteprogramprofile_Post + /// + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ecer_postsecondaryinstituteprogramprofile_Post")] + public System.Collections.Generic.IEnumerable ecer_postsecondaryinstituteprogramprofile_Post + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetRelatedEntities("ecer_postsecondaryinstituteprogramprofile_Post", null); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetRelatedEntities("ecer_postsecondaryinstituteprogramprofile_Post", null, value); + } + } + /// /// Constructor for populating via LINQ queries given a LINQ anonymous type /// LINQ anonymous type. diff --git a/src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_Investigation.cs b/src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_Investigation.cs index 820dc7b3d..83fb14e03 100644 --- a/src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_Investigation.cs +++ b/src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_Investigation.cs @@ -398,6 +398,8 @@ public partial class Fields public const string ecer_ParallelProcess = "ecer_parallelprocess"; public const string ecer_parallelprocesscommunicationinvestigation = "ecer_parallelprocesscommunicationinvestigation"; public const string ecer_parallelprocessName = "ecer_parallelprocessname"; + public const string ecer_PortalSubmission = "ecer_portalsubmission"; + public const string ecer_portalsubmissionName = "ecer_portalsubmissionname"; public const string ecer_PreviouslyInvestigatedIntake = "ecer_previouslyinvestigatedintake"; public const string ecer_previouslyinvestigatedintakeName = "ecer_previouslyinvestigatedintakename"; public const string ecer_ReadyforAssignment = "ecer_readyforassignment"; @@ -3431,6 +3433,38 @@ public string ecer_parallelprocessName } } + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_portalsubmission")] + public System.Nullable ecer_PortalSubmission + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("ecer_portalsubmission"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_portalsubmission", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_portalsubmissionname")] + public string ecer_portalsubmissionName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("ecer_portalsubmission")) + { + return this.FormattedValues["ecer_portalsubmission"]; + } + else + { + return default(string); + } + } + } + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_previouslyinvestigatedintake")] public virtual ecer_YesNoNull? ecer_PreviouslyInvestigatedIntake { diff --git a/src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_PostSecondaryInstituteCampus.cs b/src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_PostSecondaryInstituteCampus.cs new file mode 100644 index 000000000..17a5395e6 --- /dev/null +++ b/src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_PostSecondaryInstituteCampus.cs @@ -0,0 +1,722 @@ +#pragma warning disable CS1591 +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace ECER.Utilities.DataverseSdk.Model +{ + + + /// + /// Status of the Post Secondary Institute Campus + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.6")] + public enum ecer_postsecondaryinstitutecampus_statecode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Reason for the status of the Post Secondary Institute Campus + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.6")] + public enum ecer_PostSecondaryInstituteCampus_StatusCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 2, + } + + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("ecer_postsecondaryinstitutecampus")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.6")] + public partial class ecer_PostSecondaryInstituteCampus : Microsoft.Xrm.Sdk.Entity + { + + /// + /// Available fields, a the time of codegen, for the ecer_postsecondaryinstitutecampus entity + /// + public partial class Fields + { + public const string CreatedBy = "createdby"; + public const string CreatedByName = "createdbyname"; + public const string CreatedByYomiName = "createdbyyominame"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string CreatedOnBehalfByName = "createdonbehalfbyname"; + public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; + public const string ecer_Name = "ecer_name"; + public const string ecer_PostSecondaryInstituteCampusId = "ecer_postsecondaryinstitutecampusid"; + public const string Id = "ecer_postsecondaryinstitutecampusid"; + public const string ImportSequenceNumber = "importsequencenumber"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedByName = "modifiedbyname"; + public const string ModifiedByYomiName = "modifiedbyyominame"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; + public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; + public const string OverriddenCreatedOn = "overriddencreatedon"; + public const string OwnerId = "ownerid"; + public const string OwnerIdName = "owneridname"; + public const string OwnerIdYomiName = "owneridyominame"; + public const string OwningBusinessUnit = "owningbusinessunit"; + public const string OwningBusinessUnitName = "owningbusinessunitname"; + public const string OwningTeam = "owningteam"; + public const string OwningUser = "owninguser"; + public const string StateCode = "statecode"; + public const string statecodeName = "statecodename"; + public const string StatusCode = "statuscode"; + public const string statuscodeName = "statuscodename"; + public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; + public const string UTCConversionTimeZoneCode = "utcconversiontimezonecode"; + public const string VersionNumber = "versionnumber"; + } + + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteCampus(System.Guid id) : + base(EntityLogicalName, id) + { + } + + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteCampus(string keyName, object keyValue) : + base(EntityLogicalName, keyName, keyValue) + { + } + + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteCampus(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : + base(EntityLogicalName, keyAttributes) + { + } + + /// + /// Default Constructor. + /// + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteCampus() : + base(EntityLogicalName) + { + } + + public const string PrimaryIdAttribute = "ecer_postsecondaryinstitutecampusid"; + + public const string PrimaryNameAttribute = "ecer_name"; + + public const string EntitySchemaName = "ecer_PostSecondaryInstituteCampus"; + + public const string EntityLogicalName = "ecer_postsecondaryinstitutecampus"; + + public const string EntityLogicalCollectionName = "ecer_postsecondaryinstitutecampuses"; + + public const string EntitySetName = "ecer_postsecondaryinstitutecampuses"; + + /// + /// 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"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] + public string CreatedByName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("createdby")) + { + return this.FormattedValues["createdby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyyominame")] + public string CreatedByYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("createdby")) + { + return this.FormattedValues["createdby"]; + } + else + { + return default(string); + } + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the delegate user who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("createdonbehalfby", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] + public string CreatedOnBehalfByName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("createdonbehalfby")) + { + return this.FormattedValues["createdonbehalfby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] + public string CreatedOnBehalfByYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("createdonbehalfby")) + { + return this.FormattedValues["createdonbehalfby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_name")] + public string ecer_Name + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("ecer_name"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_name", value); + } + } + + /// + /// Unique identifier for entity instances + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_postsecondaryinstitutecampusid")] + public System.Nullable ecer_PostSecondaryInstituteCampusId + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("ecer_postsecondaryinstitutecampusid"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_postsecondaryinstitutecampusid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_postsecondaryinstitutecampusid")] + public override System.Guid Id + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return base.Id; + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.ecer_PostSecondaryInstituteCampusId = value; + } + } + + /// + /// Sequence number of the import that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] + public System.Nullable ImportSequenceNumber + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("importsequencenumber", value); + } + } + + /// + /// Unique identifier of the user who modified the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] + public string ModifiedByName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("modifiedby")) + { + return this.FormattedValues["modifiedby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyyominame")] + public string ModifiedByYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("modifiedby")) + { + return this.FormattedValues["modifiedby"]; + } + else + { + return default(string); + } + } + } + + /// + /// Date and time when the record was modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("modifiedonbehalfby", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] + public string ModifiedOnBehalfByName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("modifiedonbehalfby")) + { + return this.FormattedValues["modifiedonbehalfby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] + public string ModifiedOnBehalfByYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("modifiedonbehalfby")) + { + return this.FormattedValues["modifiedonbehalfby"]; + } + else + { + return default(string); + } + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("overriddencreatedon", value); + } + } + + /// + /// Owner Id + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("ownerid"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ownerid", value); + } + } + + /// + /// Name of the owner + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owneridname")] + public string OwnerIdName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("ownerid")) + { + return this.FormattedValues["ownerid"]; + } + else + { + return default(string); + } + } + } + + /// + /// Yomi name of the owner + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owneridyominame")] + public string OwnerIdYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("ownerid")) + { + return this.FormattedValues["ownerid"]; + } + else + { + return default(string); + } + } + } + + /// + /// Unique identifier for the business unit that owns the record + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunitname")] + public string OwningBusinessUnitName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("owningbusinessunit")) + { + return this.FormattedValues["owningbusinessunit"]; + } + else + { + return default(string); + } + } + } + + /// + /// Unique identifier for the team that owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier for the user that owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Status of the Post Secondary Institute Campus + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public virtual ecer_postsecondaryinstitutecampus_statecode? StateCode + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return ((ecer_postsecondaryinstitutecampus_statecode?)(EntityOptionSetEnum.GetEnum(this, "statecode"))); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("statecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecodename")] + public string statecodeName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("statecode")) + { + return this.FormattedValues["statecode"]; + } + else + { + return default(string); + } + } + } + + /// + /// Reason for the status of the Post Secondary Institute Campus + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public virtual ecer_PostSecondaryInstituteCampus_StatusCode? StatusCode + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return ((ecer_PostSecondaryInstituteCampus_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscodename")] + public string statuscodeName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("statuscode")) + { + return this.FormattedValues["statuscode"]; + } + else + { + return default(string); + } + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("timezoneruleversionnumber", value); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("utcconversiontimezonecode", value); + } + } + + /// + /// Version Number + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Constructor for populating via LINQ queries given a LINQ anonymous type + /// LINQ anonymous type. + /// + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteCampus(object anonymousType) : + this() + { + foreach (var p in anonymousType.GetType().GetProperties()) + { + var value = p.GetValue(anonymousType, null); + var name = p.Name.ToLower(); + + if (name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) + { + value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); + name = name.Remove(name.Length - "enum".Length); + } + + switch (name) + { + case "id": + base.Id = (System.Guid)value; + Attributes["ecer_postsecondaryinstitutecampusid"] = base.Id; + break; + case "ecer_postsecondaryinstitutecampusid": + var id = (System.Nullable) value; + if(id == null){ continue; } + base.Id = id.Value; + Attributes[name] = base.Id; + break; + case "formattedvalues": + // Add Support for FormattedValues + FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); + break; + default: + Attributes[name] = value; + break; + } + } + } + } +} +#pragma warning restore CS1591 diff --git a/src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_PostSecondaryInstituteInterview.cs b/src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_PostSecondaryInstituteInterview.cs new file mode 100644 index 000000000..f5b0c2928 --- /dev/null +++ b/src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_PostSecondaryInstituteInterview.cs @@ -0,0 +1,722 @@ +#pragma warning disable CS1591 +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace ECER.Utilities.DataverseSdk.Model +{ + + + /// + /// Status of the Post Secondary Institute Interview + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.6")] + public enum ecer_postsecondaryinstituteinterview_statecode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Reason for the status of the Post Secondary Institute Interview + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.6")] + public enum ecer_PostSecondaryInstituteInterview_StatusCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 2, + } + + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("ecer_postsecondaryinstituteinterview")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.6")] + public partial class ecer_PostSecondaryInstituteInterview : Microsoft.Xrm.Sdk.Entity + { + + /// + /// Available fields, a the time of codegen, for the ecer_postsecondaryinstituteinterview entity + /// + public partial class Fields + { + public const string CreatedBy = "createdby"; + public const string CreatedByName = "createdbyname"; + public const string CreatedByYomiName = "createdbyyominame"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string CreatedOnBehalfByName = "createdonbehalfbyname"; + public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; + public const string ecer_Name = "ecer_name"; + public const string ecer_PostSecondaryInstituteInterviewId = "ecer_postsecondaryinstituteinterviewid"; + public const string Id = "ecer_postsecondaryinstituteinterviewid"; + public const string ImportSequenceNumber = "importsequencenumber"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedByName = "modifiedbyname"; + public const string ModifiedByYomiName = "modifiedbyyominame"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; + public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; + public const string OverriddenCreatedOn = "overriddencreatedon"; + public const string OwnerId = "ownerid"; + public const string OwnerIdName = "owneridname"; + public const string OwnerIdYomiName = "owneridyominame"; + public const string OwningBusinessUnit = "owningbusinessunit"; + public const string OwningBusinessUnitName = "owningbusinessunitname"; + public const string OwningTeam = "owningteam"; + public const string OwningUser = "owninguser"; + public const string StateCode = "statecode"; + public const string statecodeName = "statecodename"; + public const string StatusCode = "statuscode"; + public const string statuscodeName = "statuscodename"; + public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; + public const string UTCConversionTimeZoneCode = "utcconversiontimezonecode"; + public const string VersionNumber = "versionnumber"; + } + + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteInterview(System.Guid id) : + base(EntityLogicalName, id) + { + } + + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteInterview(string keyName, object keyValue) : + base(EntityLogicalName, keyName, keyValue) + { + } + + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteInterview(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : + base(EntityLogicalName, keyAttributes) + { + } + + /// + /// Default Constructor. + /// + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteInterview() : + base(EntityLogicalName) + { + } + + public const string PrimaryIdAttribute = "ecer_postsecondaryinstituteinterviewid"; + + public const string PrimaryNameAttribute = "ecer_name"; + + public const string EntitySchemaName = "ecer_PostSecondaryInstituteInterview"; + + public const string EntityLogicalName = "ecer_postsecondaryinstituteinterview"; + + public const string EntityLogicalCollectionName = "ecer_postsecondaryinstituteinterviews"; + + public const string EntitySetName = "ecer_postsecondaryinstituteinterviews"; + + /// + /// 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"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] + public string CreatedByName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("createdby")) + { + return this.FormattedValues["createdby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyyominame")] + public string CreatedByYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("createdby")) + { + return this.FormattedValues["createdby"]; + } + else + { + return default(string); + } + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the delegate user who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("createdonbehalfby", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] + public string CreatedOnBehalfByName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("createdonbehalfby")) + { + return this.FormattedValues["createdonbehalfby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] + public string CreatedOnBehalfByYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("createdonbehalfby")) + { + return this.FormattedValues["createdonbehalfby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_name")] + public string ecer_Name + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("ecer_name"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_name", value); + } + } + + /// + /// Unique identifier for entity instances + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_postsecondaryinstituteinterviewid")] + public System.Nullable ecer_PostSecondaryInstituteInterviewId + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("ecer_postsecondaryinstituteinterviewid"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_postsecondaryinstituteinterviewid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_postsecondaryinstituteinterviewid")] + public override System.Guid Id + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return base.Id; + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.ecer_PostSecondaryInstituteInterviewId = value; + } + } + + /// + /// Sequence number of the import that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] + public System.Nullable ImportSequenceNumber + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("importsequencenumber", value); + } + } + + /// + /// Unique identifier of the user who modified the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] + public string ModifiedByName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("modifiedby")) + { + return this.FormattedValues["modifiedby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyyominame")] + public string ModifiedByYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("modifiedby")) + { + return this.FormattedValues["modifiedby"]; + } + else + { + return default(string); + } + } + } + + /// + /// Date and time when the record was modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("modifiedonbehalfby", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] + public string ModifiedOnBehalfByName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("modifiedonbehalfby")) + { + return this.FormattedValues["modifiedonbehalfby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] + public string ModifiedOnBehalfByYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("modifiedonbehalfby")) + { + return this.FormattedValues["modifiedonbehalfby"]; + } + else + { + return default(string); + } + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("overriddencreatedon", value); + } + } + + /// + /// Owner Id + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("ownerid"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ownerid", value); + } + } + + /// + /// Name of the owner + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owneridname")] + public string OwnerIdName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("ownerid")) + { + return this.FormattedValues["ownerid"]; + } + else + { + return default(string); + } + } + } + + /// + /// Yomi name of the owner + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owneridyominame")] + public string OwnerIdYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("ownerid")) + { + return this.FormattedValues["ownerid"]; + } + else + { + return default(string); + } + } + } + + /// + /// Unique identifier for the business unit that owns the record + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunitname")] + public string OwningBusinessUnitName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("owningbusinessunit")) + { + return this.FormattedValues["owningbusinessunit"]; + } + else + { + return default(string); + } + } + } + + /// + /// Unique identifier for the team that owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier for the user that owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Status of the Post Secondary Institute Interview + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public virtual ecer_postsecondaryinstituteinterview_statecode? StateCode + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return ((ecer_postsecondaryinstituteinterview_statecode?)(EntityOptionSetEnum.GetEnum(this, "statecode"))); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("statecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecodename")] + public string statecodeName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("statecode")) + { + return this.FormattedValues["statecode"]; + } + else + { + return default(string); + } + } + } + + /// + /// Reason for the status of the Post Secondary Institute Interview + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public virtual ecer_PostSecondaryInstituteInterview_StatusCode? StatusCode + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return ((ecer_PostSecondaryInstituteInterview_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscodename")] + public string statuscodeName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("statuscode")) + { + return this.FormattedValues["statuscode"]; + } + else + { + return default(string); + } + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("timezoneruleversionnumber", value); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("utcconversiontimezonecode", value); + } + } + + /// + /// Version Number + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Constructor for populating via LINQ queries given a LINQ anonymous type + /// LINQ anonymous type. + /// + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteInterview(object anonymousType) : + this() + { + foreach (var p in anonymousType.GetType().GetProperties()) + { + var value = p.GetValue(anonymousType, null); + var name = p.Name.ToLower(); + + if (name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) + { + value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); + name = name.Remove(name.Length - "enum".Length); + } + + switch (name) + { + case "id": + base.Id = (System.Guid)value; + Attributes["ecer_postsecondaryinstituteinterviewid"] = base.Id; + break; + case "ecer_postsecondaryinstituteinterviewid": + var id = (System.Nullable) value; + if(id == null){ continue; } + base.Id = id.Value; + Attributes[name] = base.Id; + break; + case "formattedvalues": + // Add Support for FormattedValues + FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); + break; + default: + Attributes[name] = value; + break; + } + } + } + } +} +#pragma warning restore CS1591 diff --git a/src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_PostSecondaryInstituteProgramApplicaiton.cs b/src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_PostSecondaryInstituteProgramApplicaiton.cs new file mode 100644 index 000000000..b9c921cb6 --- /dev/null +++ b/src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_PostSecondaryInstituteProgramApplicaiton.cs @@ -0,0 +1,1048 @@ +#pragma warning disable CS1591 +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace ECER.Utilities.DataverseSdk.Model +{ + + + /// + /// Status of the Post Secondary Institute Program Applicaiton + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.6")] + public enum ecer_postsecondaryinstituteprogramapplicaiton_statecode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Reason for the status of the Post Secondary Institute Program Applicaiton + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.6")] + public enum ecer_PostSecondaryInstituteProgramApplicaiton_StatusCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 2, + } + + /// + /// PSI Program Applicaitons + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("ecer_postsecondaryinstituteprogramapplicaiton")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.6")] + public partial class ecer_PostSecondaryInstituteProgramApplicaiton : Microsoft.Xrm.Sdk.Entity + { + + /// + /// Available fields, a the time of codegen, for the ecer_postsecondaryinstituteprogramapplicaiton entity + /// + public partial class Fields + { + public const string CreatedBy = "createdby"; + public const string CreatedByName = "createdbyname"; + public const string CreatedByYomiName = "createdbyyominame"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string CreatedOnBehalfByName = "createdonbehalfbyname"; + public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; + public const string ecer_AgreeNotifyofChanges = "ecer_agreenotifyofchanges"; + public const string ecer_agreenotifyofchangesName = "ecer_agreenotifyofchangesname"; + public const string ecer_ApplicationType = "ecer_applicationtype"; + public const string ecer_applicationtypeName = "ecer_applicationtypename"; + public const string ecer_DateOfApplication = "ecer_dateofapplication"; + public const string ecer_DeliveryType = "ecer_deliverytype"; + public const string ecer_deliverytypeName = "ecer_deliverytypename"; + public const string ecer_ID = "ecer_id"; + public const string ecer_Name = "ecer_name"; + public const string ecer_PostSecondaryInstitute = "ecer_postsecondaryinstitute"; + public const string ecer_PostSecondaryInstituteName = "ecer_postsecondaryinstitutename"; + public const string ecer_postsecondaryinstituteprogramapplicaiton_ = "ecer_postsecondaryinstituteprogramapplicaiton_"; + public const string ecer_PostSecondaryInstituteProgramApplicaitonId = "ecer_postsecondaryinstituteprogramapplicaitonid"; + public const string Id = "ecer_postsecondaryinstituteprogramapplicaitonid"; + public const string ecer_ProjectedNumberOfFullTimeStudents = "ecer_projectednumberoffulltimestudents"; + public const string ecer_ProjectedNumberofOccasionalStudents = "ecer_projectednumberofoccasionalstudents"; + public const string ecer_ProjectedNumberofPartTimeStudents = "ecer_projectednumberofparttimestudents"; + public const string ecer_ProjectedNumberOfStudents = "ecer_projectednumberofstudents"; + public const string ecer_ProjectLength = "ecer_projectlength"; + public const string ecer_projectlengthName = "ecer_projectlengthname"; + public const string ecer_ProvincialCertificationTypeOffered = "ecer_provincialcertificationtypeoffered"; + public const string ecer_provincialcertificationtypeofferedName = "ecer_provincialcertificationtypeofferedname"; + public const string ImportSequenceNumber = "importsequencenumber"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedByName = "modifiedbyname"; + public const string ModifiedByYomiName = "modifiedbyyominame"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; + public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; + public const string OverriddenCreatedOn = "overriddencreatedon"; + public const string OwnerId = "ownerid"; + public const string OwnerIdName = "owneridname"; + public const string OwnerIdYomiName = "owneridyominame"; + public const string OwningBusinessUnit = "owningbusinessunit"; + public const string OwningBusinessUnitName = "owningbusinessunitname"; + public const string OwningTeam = "owningteam"; + public const string OwningUser = "owninguser"; + public const string StateCode = "statecode"; + public const string statecodeName = "statecodename"; + public const string StatusCode = "statuscode"; + public const string statuscodeName = "statuscodename"; + public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; + public const string UTCConversionTimeZoneCode = "utcconversiontimezonecode"; + public const string VersionNumber = "versionnumber"; + } + + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteProgramApplicaiton(System.Guid id) : + base(EntityLogicalName, id) + { + } + + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteProgramApplicaiton(string keyName, object keyValue) : + base(EntityLogicalName, keyName, keyValue) + { + } + + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteProgramApplicaiton(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : + base(EntityLogicalName, keyAttributes) + { + } + + /// + /// Default Constructor. + /// + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteProgramApplicaiton() : + base(EntityLogicalName) + { + } + + public const string PrimaryIdAttribute = "ecer_postsecondaryinstituteprogramapplicaitonid"; + + public const string PrimaryNameAttribute = "ecer_name"; + + public const string EntitySchemaName = "ecer_PostSecondaryInstituteProgramApplicaiton"; + + public const string EntityLogicalName = "ecer_postsecondaryinstituteprogramapplicaiton"; + + public const string EntityLogicalCollectionName = "ecer_postsecondaryinstituteprogramapplicaitons"; + + public const string EntitySetName = "ecer_postsecondaryinstituteprogramapplicaitons"; + + /// + /// 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"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] + public string CreatedByName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("createdby")) + { + return this.FormattedValues["createdby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyyominame")] + public string CreatedByYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("createdby")) + { + return this.FormattedValues["createdby"]; + } + else + { + return default(string); + } + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the delegate user who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("createdonbehalfby", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] + public string CreatedOnBehalfByName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("createdonbehalfby")) + { + return this.FormattedValues["createdonbehalfby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] + public string CreatedOnBehalfByYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("createdonbehalfby")) + { + return this.FormattedValues["createdonbehalfby"]; + } + else + { + return default(string); + } + } + } + + /// + /// I agree to notify the Early Childhood Educator Registry (Registry) of any significant changes to curriculum, program, or location and to provide a complete program profile to the Registry on an annual basis + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_agreenotifyofchanges")] + public virtual ecer_YesNoNull? ecer_AgreeNotifyofChanges + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return ((ecer_YesNoNull?)(EntityOptionSetEnum.GetEnum(this, "ecer_agreenotifyofchanges"))); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_agreenotifyofchanges", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_agreenotifyofchangesname")] + public string ecer_agreenotifyofchangesName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("ecer_agreenotifyofchanges")) + { + return this.FormattedValues["ecer_agreenotifyofchanges"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_applicationtype")] + public virtual ecer_PSIApplicationType? ecer_ApplicationType + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return ((ecer_PSIApplicationType?)(EntityOptionSetEnum.GetEnum(this, "ecer_applicationtype"))); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_applicationtype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_applicationtypename")] + public string ecer_applicationtypeName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("ecer_applicationtype")) + { + return this.FormattedValues["ecer_applicationtype"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_dateofapplication")] + public System.Nullable ecer_DateOfApplication + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("ecer_dateofapplication"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_dateofapplication", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_deliverytype")] + public virtual ecer_PSIDeliveryType? ecer_DeliveryType + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return ((ecer_PSIDeliveryType?)(EntityOptionSetEnum.GetEnum(this, "ecer_deliverytype"))); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_deliverytype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_deliverytypename")] + public string ecer_deliverytypeName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("ecer_deliverytype")) + { + return this.FormattedValues["ecer_deliverytype"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_id")] + public string ecer_ID + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("ecer_id"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_id", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_name")] + public string ecer_Name + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("ecer_name"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_name", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_postsecondaryinstitute")] + public Microsoft.Xrm.Sdk.EntityReference ecer_PostSecondaryInstitute + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("ecer_postsecondaryinstitute"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_postsecondaryinstitute", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_postsecondaryinstitutename")] + public string ecer_PostSecondaryInstituteName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("ecer_postsecondaryinstitute")) + { + return this.FormattedValues["ecer_postsecondaryinstitute"]; + } + else + { + return default(string); + } + } + } + + /// + /// Unique identifier for entity instances + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_postsecondaryinstituteprogramapplicaitonid")] + public System.Nullable ecer_PostSecondaryInstituteProgramApplicaitonId + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("ecer_postsecondaryinstituteprogramapplicaitonid"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_postsecondaryinstituteprogramapplicaitonid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_postsecondaryinstituteprogramapplicaitonid")] + public override System.Guid Id + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return base.Id; + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.ecer_PostSecondaryInstituteProgramApplicaitonId = value; + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_projectednumberoffulltimestudents")] + public System.Nullable ecer_ProjectedNumberOfFullTimeStudents + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("ecer_projectednumberoffulltimestudents"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_projectednumberoffulltimestudents", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_projectednumberofoccasionalstudents")] + public System.Nullable ecer_ProjectedNumberofOccasionalStudents + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("ecer_projectednumberofoccasionalstudents"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_projectednumberofoccasionalstudents", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_projectednumberofparttimestudents")] + public System.Nullable ecer_ProjectedNumberofPartTimeStudents + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("ecer_projectednumberofparttimestudents"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_projectednumberofparttimestudents", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_projectednumberofstudents")] + public System.Nullable ecer_ProjectedNumberOfStudents + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("ecer_projectednumberofstudents"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_projectednumberofstudents", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_projectlength")] + public virtual ecer_PSIProjectedLength? ecer_ProjectLength + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return ((ecer_PSIProjectedLength?)(EntityOptionSetEnum.GetEnum(this, "ecer_projectlength"))); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_projectlength", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_projectlengthname")] + public string ecer_projectlengthName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("ecer_projectlength")) + { + return this.FormattedValues["ecer_projectlength"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_provincialcertificationtypeoffered")] + public virtual ecer_PSIProvincialCertificationTypeOffered? ecer_ProvincialCertificationTypeOffered + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return ((ecer_PSIProvincialCertificationTypeOffered?)(EntityOptionSetEnum.GetEnum(this, "ecer_provincialcertificationtypeoffered"))); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_provincialcertificationtypeoffered", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_provincialcertificationtypeofferedname")] + public string ecer_provincialcertificationtypeofferedName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("ecer_provincialcertificationtypeoffered")) + { + return this.FormattedValues["ecer_provincialcertificationtypeoffered"]; + } + else + { + return default(string); + } + } + } + + /// + /// Sequence number of the import that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] + public System.Nullable ImportSequenceNumber + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("importsequencenumber", value); + } + } + + /// + /// Unique identifier of the user who modified the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] + public string ModifiedByName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("modifiedby")) + { + return this.FormattedValues["modifiedby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyyominame")] + public string ModifiedByYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("modifiedby")) + { + return this.FormattedValues["modifiedby"]; + } + else + { + return default(string); + } + } + } + + /// + /// Date and time when the record was modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("modifiedonbehalfby", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] + public string ModifiedOnBehalfByName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("modifiedonbehalfby")) + { + return this.FormattedValues["modifiedonbehalfby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] + public string ModifiedOnBehalfByYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("modifiedonbehalfby")) + { + return this.FormattedValues["modifiedonbehalfby"]; + } + else + { + return default(string); + } + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("overriddencreatedon", value); + } + } + + /// + /// Owner Id + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("ownerid"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ownerid", value); + } + } + + /// + /// Name of the owner + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owneridname")] + public string OwnerIdName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("ownerid")) + { + return this.FormattedValues["ownerid"]; + } + else + { + return default(string); + } + } + } + + /// + /// Yomi name of the owner + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owneridyominame")] + public string OwnerIdYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("ownerid")) + { + return this.FormattedValues["ownerid"]; + } + else + { + return default(string); + } + } + } + + /// + /// Unique identifier for the business unit that owns the record + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunitname")] + public string OwningBusinessUnitName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("owningbusinessunit")) + { + return this.FormattedValues["owningbusinessunit"]; + } + else + { + return default(string); + } + } + } + + /// + /// Unique identifier for the team that owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier for the user that owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Status of the Post Secondary Institute Program Applicaiton + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public virtual ecer_postsecondaryinstituteprogramapplicaiton_statecode? StateCode + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return ((ecer_postsecondaryinstituteprogramapplicaiton_statecode?)(EntityOptionSetEnum.GetEnum(this, "statecode"))); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("statecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecodename")] + public string statecodeName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("statecode")) + { + return this.FormattedValues["statecode"]; + } + else + { + return default(string); + } + } + } + + /// + /// Reason for the status of the Post Secondary Institute Program Applicaiton + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public virtual ecer_PostSecondaryInstituteProgramApplicaiton_StatusCode? StatusCode + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return ((ecer_PostSecondaryInstituteProgramApplicaiton_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscodename")] + public string statuscodeName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("statuscode")) + { + return this.FormattedValues["statuscode"]; + } + else + { + return default(string); + } + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("timezoneruleversionnumber", value); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("utcconversiontimezonecode", value); + } + } + + /// + /// Version Number + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:1 ecer_postsecondaryinstituteprogramapplicaiton_ + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_postsecondaryinstitute")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ecer_postsecondaryinstituteprogramapplicaiton_")] + public ECER.Utilities.DataverseSdk.Model.ecer_PostSecondaryInstitute ecer_postsecondaryinstituteprogramapplicaiton_ + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetRelatedEntity("ecer_postsecondaryinstituteprogramapplicaiton_", null); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetRelatedEntity("ecer_postsecondaryinstituteprogramapplicaiton_", null, value); + } + } + + /// + /// Constructor for populating via LINQ queries given a LINQ anonymous type + /// LINQ anonymous type. + /// + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteProgramApplicaiton(object anonymousType) : + this() + { + foreach (var p in anonymousType.GetType().GetProperties()) + { + var value = p.GetValue(anonymousType, null); + var name = p.Name.ToLower(); + + if (name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) + { + value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); + name = name.Remove(name.Length - "enum".Length); + } + + switch (name) + { + case "id": + base.Id = (System.Guid)value; + Attributes["ecer_postsecondaryinstituteprogramapplicaitonid"] = base.Id; + break; + case "ecer_postsecondaryinstituteprogramapplicaitonid": + var id = (System.Nullable) value; + if(id == null){ continue; } + base.Id = id.Value; + Attributes[name] = base.Id; + break; + case "formattedvalues": + // Add Support for FormattedValues + FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); + break; + default: + Attributes[name] = value; + break; + } + } + } + } +} +#pragma warning restore CS1591 diff --git a/src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_PostSecondaryInstituteProgramProfile.cs b/src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_PostSecondaryInstituteProgramProfile.cs new file mode 100644 index 000000000..765fe7bf6 --- /dev/null +++ b/src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_PostSecondaryInstituteProgramProfile.cs @@ -0,0 +1,779 @@ +#pragma warning disable CS1591 +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace ECER.Utilities.DataverseSdk.Model +{ + + + /// + /// Status of the Post Secondary Institute Program Profile + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.6")] + public enum ecer_postsecondaryinstituteprogramprofile_statecode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Reason for the status of the Post Secondary Institute Program Profile + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.6")] + public enum ecer_PostSecondaryInstituteProgramProfile_StatusCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 2, + } + + /// + /// PSI Program Profiles + /// + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("ecer_postsecondaryinstituteprogramprofile")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.6")] + public partial class ecer_PostSecondaryInstituteProgramProfile : Microsoft.Xrm.Sdk.Entity + { + + /// + /// Available fields, a the time of codegen, for the ecer_postsecondaryinstituteprogramprofile entity + /// + public partial class Fields + { + public const string CreatedBy = "createdby"; + public const string CreatedByName = "createdbyname"; + public const string CreatedByYomiName = "createdbyyominame"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string CreatedOnBehalfByName = "createdonbehalfbyname"; + public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; + public const string ecer_Name = "ecer_name"; + public const string ecer_PostSecondaryInstitute = "ecer_postsecondaryinstitute"; + public const string ecer_PostSecondaryInstituteName = "ecer_postsecondaryinstitutename"; + public const string ecer_postsecondaryinstituteprogramprofile_Post = "ecer_postsecondaryinstituteprogramprofile_Post"; + public const string ecer_PostSecondaryInstituteProgramProfileId = "ecer_postsecondaryinstituteprogramprofileid"; + public const string Id = "ecer_postsecondaryinstituteprogramprofileid"; + public const string ImportSequenceNumber = "importsequencenumber"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedByName = "modifiedbyname"; + public const string ModifiedByYomiName = "modifiedbyyominame"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; + public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; + public const string OverriddenCreatedOn = "overriddencreatedon"; + public const string OwnerId = "ownerid"; + public const string OwnerIdName = "owneridname"; + public const string OwnerIdYomiName = "owneridyominame"; + public const string OwningBusinessUnit = "owningbusinessunit"; + public const string OwningBusinessUnitName = "owningbusinessunitname"; + public const string OwningTeam = "owningteam"; + public const string OwningUser = "owninguser"; + public const string StateCode = "statecode"; + public const string statecodeName = "statecodename"; + public const string StatusCode = "statuscode"; + public const string statuscodeName = "statuscodename"; + public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; + public const string UTCConversionTimeZoneCode = "utcconversiontimezonecode"; + public const string VersionNumber = "versionnumber"; + } + + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteProgramProfile(System.Guid id) : + base(EntityLogicalName, id) + { + } + + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteProgramProfile(string keyName, object keyValue) : + base(EntityLogicalName, keyName, keyValue) + { + } + + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteProgramProfile(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : + base(EntityLogicalName, keyAttributes) + { + } + + /// + /// Default Constructor. + /// + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteProgramProfile() : + base(EntityLogicalName) + { + } + + public const string PrimaryIdAttribute = "ecer_postsecondaryinstituteprogramprofileid"; + + public const string PrimaryNameAttribute = "ecer_name"; + + public const string EntitySchemaName = "ecer_PostSecondaryInstituteProgramProfile"; + + public const string EntityLogicalName = "ecer_postsecondaryinstituteprogramprofile"; + + public const string EntityLogicalCollectionName = "ecer_postsecondaryinstituteprogramprofiles"; + + public const string EntitySetName = "ecer_postsecondaryinstituteprogramprofiles"; + + /// + /// 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"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] + public string CreatedByName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("createdby")) + { + return this.FormattedValues["createdby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyyominame")] + public string CreatedByYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("createdby")) + { + return this.FormattedValues["createdby"]; + } + else + { + return default(string); + } + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the delegate user who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("createdonbehalfby", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] + public string CreatedOnBehalfByName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("createdonbehalfby")) + { + return this.FormattedValues["createdonbehalfby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] + public string CreatedOnBehalfByYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("createdonbehalfby")) + { + return this.FormattedValues["createdonbehalfby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_name")] + public string ecer_Name + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("ecer_name"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_name", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_postsecondaryinstitute")] + public Microsoft.Xrm.Sdk.EntityReference ecer_PostSecondaryInstitute + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("ecer_postsecondaryinstitute"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_postsecondaryinstitute", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_postsecondaryinstitutename")] + public string ecer_PostSecondaryInstituteName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("ecer_postsecondaryinstitute")) + { + return this.FormattedValues["ecer_postsecondaryinstitute"]; + } + else + { + return default(string); + } + } + } + + /// + /// Unique identifier for entity instances + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_postsecondaryinstituteprogramprofileid")] + public System.Nullable ecer_PostSecondaryInstituteProgramProfileId + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("ecer_postsecondaryinstituteprogramprofileid"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_postsecondaryinstituteprogramprofileid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_postsecondaryinstituteprogramprofileid")] + public override System.Guid Id + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return base.Id; + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.ecer_PostSecondaryInstituteProgramProfileId = value; + } + } + + /// + /// Sequence number of the import that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] + public System.Nullable ImportSequenceNumber + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("importsequencenumber", value); + } + } + + /// + /// Unique identifier of the user who modified the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] + public string ModifiedByName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("modifiedby")) + { + return this.FormattedValues["modifiedby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyyominame")] + public string ModifiedByYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("modifiedby")) + { + return this.FormattedValues["modifiedby"]; + } + else + { + return default(string); + } + } + } + + /// + /// Date and time when the record was modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("modifiedonbehalfby", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] + public string ModifiedOnBehalfByName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("modifiedonbehalfby")) + { + return this.FormattedValues["modifiedonbehalfby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] + public string ModifiedOnBehalfByYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("modifiedonbehalfby")) + { + return this.FormattedValues["modifiedonbehalfby"]; + } + else + { + return default(string); + } + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("overriddencreatedon", value); + } + } + + /// + /// Owner Id + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("ownerid"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ownerid", value); + } + } + + /// + /// Name of the owner + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owneridname")] + public string OwnerIdName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("ownerid")) + { + return this.FormattedValues["ownerid"]; + } + else + { + return default(string); + } + } + } + + /// + /// Yomi name of the owner + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owneridyominame")] + public string OwnerIdYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("ownerid")) + { + return this.FormattedValues["ownerid"]; + } + else + { + return default(string); + } + } + } + + /// + /// Unique identifier for the business unit that owns the record + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunitname")] + public string OwningBusinessUnitName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("owningbusinessunit")) + { + return this.FormattedValues["owningbusinessunit"]; + } + else + { + return default(string); + } + } + } + + /// + /// Unique identifier for the team that owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier for the user that owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Status of the Post Secondary Institute Program Profile + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public virtual ecer_postsecondaryinstituteprogramprofile_statecode? StateCode + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return ((ecer_postsecondaryinstituteprogramprofile_statecode?)(EntityOptionSetEnum.GetEnum(this, "statecode"))); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("statecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecodename")] + public string statecodeName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("statecode")) + { + return this.FormattedValues["statecode"]; + } + else + { + return default(string); + } + } + } + + /// + /// Reason for the status of the Post Secondary Institute Program Profile + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public virtual ecer_PostSecondaryInstituteProgramProfile_StatusCode? StatusCode + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return ((ecer_PostSecondaryInstituteProgramProfile_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscodename")] + public string statuscodeName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("statuscode")) + { + return this.FormattedValues["statuscode"]; + } + else + { + return default(string); + } + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("timezoneruleversionnumber", value); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("utcconversiontimezonecode", value); + } + } + + /// + /// Version Number + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// N:1 ecer_postsecondaryinstituteprogramprofile_Post + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_postsecondaryinstitute")] + [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("ecer_postsecondaryinstituteprogramprofile_Post")] + public ECER.Utilities.DataverseSdk.Model.ecer_PostSecondaryInstitute ecer_postsecondaryinstituteprogramprofile_Post + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetRelatedEntity("ecer_postsecondaryinstituteprogramprofile_Post", null); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetRelatedEntity("ecer_postsecondaryinstituteprogramprofile_Post", null, value); + } + } + + /// + /// Constructor for populating via LINQ queries given a LINQ anonymous type + /// LINQ anonymous type. + /// + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteProgramProfile(object anonymousType) : + this() + { + foreach (var p in anonymousType.GetType().GetProperties()) + { + var value = p.GetValue(anonymousType, null); + var name = p.Name.ToLower(); + + if (name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) + { + value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); + name = name.Remove(name.Length - "enum".Length); + } + + switch (name) + { + case "id": + base.Id = (System.Guid)value; + Attributes["ecer_postsecondaryinstituteprogramprofileid"] = base.Id; + break; + case "ecer_postsecondaryinstituteprogramprofileid": + var id = (System.Nullable) value; + if(id == null){ continue; } + base.Id = id.Value; + Attributes[name] = base.Id; + break; + case "formattedvalues": + // Add Support for FormattedValues + FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); + break; + default: + Attributes[name] = value; + break; + } + } + } + } +} +#pragma warning restore CS1591 diff --git a/src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_PostSecondaryInstituteSiteVisit.cs b/src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_PostSecondaryInstituteSiteVisit.cs new file mode 100644 index 000000000..f86095a2a --- /dev/null +++ b/src/ECER.Utilities.DataverseSdk/Model/Entities/ecer_PostSecondaryInstituteSiteVisit.cs @@ -0,0 +1,722 @@ +#pragma warning disable CS1591 +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace ECER.Utilities.DataverseSdk.Model +{ + + + /// + /// Status of the Post Secondary Institute Site Visit + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.6")] + public enum ecer_postsecondaryinstitutesitevisit_statecode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 0, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 1, + } + + /// + /// Reason for the status of the Post Secondary Institute Site Visit + /// + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.6")] + public enum ecer_PostSecondaryInstituteSiteVisit_StatusCode + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Active = 1, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inactive = 2, + } + + [System.Runtime.Serialization.DataContractAttribute()] + [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("ecer_postsecondaryinstitutesitevisit")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.6")] + public partial class ecer_PostSecondaryInstituteSiteVisit : Microsoft.Xrm.Sdk.Entity + { + + /// + /// Available fields, a the time of codegen, for the ecer_postsecondaryinstitutesitevisit entity + /// + public partial class Fields + { + public const string CreatedBy = "createdby"; + public const string CreatedByName = "createdbyname"; + public const string CreatedByYomiName = "createdbyyominame"; + public const string CreatedOn = "createdon"; + public const string CreatedOnBehalfBy = "createdonbehalfby"; + public const string CreatedOnBehalfByName = "createdonbehalfbyname"; + public const string CreatedOnBehalfByYomiName = "createdonbehalfbyyominame"; + public const string ecer_Name = "ecer_name"; + public const string ecer_PostSecondaryInstituteSiteVisitId = "ecer_postsecondaryinstitutesitevisitid"; + public const string Id = "ecer_postsecondaryinstitutesitevisitid"; + public const string ImportSequenceNumber = "importsequencenumber"; + public const string ModifiedBy = "modifiedby"; + public const string ModifiedByName = "modifiedbyname"; + public const string ModifiedByYomiName = "modifiedbyyominame"; + public const string ModifiedOn = "modifiedon"; + public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; + public const string ModifiedOnBehalfByName = "modifiedonbehalfbyname"; + public const string ModifiedOnBehalfByYomiName = "modifiedonbehalfbyyominame"; + public const string OverriddenCreatedOn = "overriddencreatedon"; + public const string OwnerId = "ownerid"; + public const string OwnerIdName = "owneridname"; + public const string OwnerIdYomiName = "owneridyominame"; + public const string OwningBusinessUnit = "owningbusinessunit"; + public const string OwningBusinessUnitName = "owningbusinessunitname"; + public const string OwningTeam = "owningteam"; + public const string OwningUser = "owninguser"; + public const string StateCode = "statecode"; + public const string statecodeName = "statecodename"; + public const string StatusCode = "statuscode"; + public const string statuscodeName = "statuscodename"; + public const string TimeZoneRuleVersionNumber = "timezoneruleversionnumber"; + public const string UTCConversionTimeZoneCode = "utcconversiontimezonecode"; + public const string VersionNumber = "versionnumber"; + } + + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteSiteVisit(System.Guid id) : + base(EntityLogicalName, id) + { + } + + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteSiteVisit(string keyName, object keyValue) : + base(EntityLogicalName, keyName, keyValue) + { + } + + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteSiteVisit(Microsoft.Xrm.Sdk.KeyAttributeCollection keyAttributes) : + base(EntityLogicalName, keyAttributes) + { + } + + /// + /// Default Constructor. + /// + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteSiteVisit() : + base(EntityLogicalName) + { + } + + public const string PrimaryIdAttribute = "ecer_postsecondaryinstitutesitevisitid"; + + public const string PrimaryNameAttribute = "ecer_name"; + + public const string EntitySchemaName = "ecer_PostSecondaryInstituteSiteVisit"; + + public const string EntityLogicalName = "ecer_postsecondaryinstitutesitevisit"; + + public const string EntityLogicalCollectionName = "ecer_postsecondaryinstitutesitevisits"; + + public const string EntitySetName = "ecer_postsecondaryinstitutesitevisits"; + + /// + /// 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"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyname")] + public string CreatedByName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("createdby")) + { + return this.FormattedValues["createdby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdbyyominame")] + public string CreatedByYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("createdby")) + { + return this.FormattedValues["createdby"]; + } + else + { + return default(string); + } + } + } + + /// + /// 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"); + } + } + + /// + /// Unique identifier of the delegate user who created the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("createdonbehalfby"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("createdonbehalfby", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyname")] + public string CreatedOnBehalfByName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("createdonbehalfby")) + { + return this.FormattedValues["createdonbehalfby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfbyyominame")] + public string CreatedOnBehalfByYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("createdonbehalfby")) + { + return this.FormattedValues["createdonbehalfby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_name")] + public string ecer_Name + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("ecer_name"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_name", value); + } + } + + /// + /// Unique identifier for entity instances + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_postsecondaryinstitutesitevisitid")] + public System.Nullable ecer_PostSecondaryInstituteSiteVisitId + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("ecer_postsecondaryinstitutesitevisitid"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ecer_postsecondaryinstitutesitevisitid", value); + if (value.HasValue) + { + base.Id = value.Value; + } + else + { + base.Id = System.Guid.Empty; + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ecer_postsecondaryinstitutesitevisitid")] + public override System.Guid Id + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return base.Id; + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.ecer_PostSecondaryInstituteSiteVisitId = value; + } + } + + /// + /// Sequence number of the import that created this record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] + public System.Nullable ImportSequenceNumber + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("importsequencenumber"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("importsequencenumber", value); + } + } + + /// + /// Unique identifier of the user who modified the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedBy + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("modifiedby"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyname")] + public string ModifiedByName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("modifiedby")) + { + return this.FormattedValues["modifiedby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedbyyominame")] + public string ModifiedByYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("modifiedby")) + { + return this.FormattedValues["modifiedby"]; + } + else + { + return default(string); + } + } + } + + /// + /// Date and time when the record was modified. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] + public System.Nullable ModifiedOn + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("modifiedon"); + } + } + + /// + /// Unique identifier of the delegate user who modified the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] + public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("modifiedonbehalfby"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("modifiedonbehalfby", value); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyname")] + public string ModifiedOnBehalfByName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("modifiedonbehalfby")) + { + return this.FormattedValues["modifiedonbehalfby"]; + } + else + { + return default(string); + } + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfbyyominame")] + public string ModifiedOnBehalfByYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("modifiedonbehalfby")) + { + return this.FormattedValues["modifiedonbehalfby"]; + } + else + { + return default(string); + } + } + } + + /// + /// Date and time that the record was migrated. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] + public System.Nullable OverriddenCreatedOn + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("overriddencreatedon"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("overriddencreatedon", value); + } + } + + /// + /// Owner Id + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ownerid")] + public Microsoft.Xrm.Sdk.EntityReference OwnerId + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("ownerid"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("ownerid", value); + } + } + + /// + /// Name of the owner + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owneridname")] + public string OwnerIdName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("ownerid")) + { + return this.FormattedValues["ownerid"]; + } + else + { + return default(string); + } + } + } + + /// + /// Yomi name of the owner + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owneridyominame")] + public string OwnerIdYomiName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("ownerid")) + { + return this.FormattedValues["ownerid"]; + } + else + { + return default(string); + } + } + } + + /// + /// Unique identifier for the business unit that owns the record + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunit")] + public Microsoft.Xrm.Sdk.EntityReference OwningBusinessUnit + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("owningbusinessunit"); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningbusinessunitname")] + public string OwningBusinessUnitName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("owningbusinessunit")) + { + return this.FormattedValues["owningbusinessunit"]; + } + else + { + return default(string); + } + } + } + + /// + /// Unique identifier for the team that owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owningteam")] + public Microsoft.Xrm.Sdk.EntityReference OwningTeam + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("owningteam"); + } + } + + /// + /// Unique identifier for the user that owns the record. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("owninguser")] + public Microsoft.Xrm.Sdk.EntityReference OwningUser + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue("owninguser"); + } + } + + /// + /// Status of the Post Secondary Institute Site Visit + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecode")] + public virtual ecer_postsecondaryinstitutesitevisit_statecode? StateCode + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return ((ecer_postsecondaryinstitutesitevisit_statecode?)(EntityOptionSetEnum.GetEnum(this, "statecode"))); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("statecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statecodename")] + public string statecodeName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("statecode")) + { + return this.FormattedValues["statecode"]; + } + else + { + return default(string); + } + } + } + + /// + /// Reason for the status of the Post Secondary Institute Site Visit + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscode")] + public virtual ecer_PostSecondaryInstituteSiteVisit_StatusCode? StatusCode + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return ((ecer_PostSecondaryInstituteSiteVisit_StatusCode?)(EntityOptionSetEnum.GetEnum(this, "statuscode"))); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("statuscode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); + } + } + + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("statuscodename")] + public string statuscodeName + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + if (this.FormattedValues.Contains("statuscode")) + { + return this.FormattedValues["statuscode"]; + } + else + { + return default(string); + } + } + } + + /// + /// For internal use only. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("timezoneruleversionnumber")] + public System.Nullable TimeZoneRuleVersionNumber + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("timezoneruleversionnumber"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("timezoneruleversionnumber", value); + } + } + + /// + /// Time zone code that was in use when the record was created. + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcconversiontimezonecode")] + public System.Nullable UTCConversionTimeZoneCode + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("utcconversiontimezonecode"); + } + [System.Diagnostics.DebuggerNonUserCode()] + set + { + this.SetAttributeValue("utcconversiontimezonecode", value); + } + } + + /// + /// Version Number + /// + [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] + public System.Nullable VersionNumber + { + [System.Diagnostics.DebuggerNonUserCode()] + get + { + return this.GetAttributeValue>("versionnumber"); + } + } + + /// + /// Constructor for populating via LINQ queries given a LINQ anonymous type + /// LINQ anonymous type. + /// + [System.Diagnostics.DebuggerNonUserCode()] + public ecer_PostSecondaryInstituteSiteVisit(object anonymousType) : + this() + { + foreach (var p in anonymousType.GetType().GetProperties()) + { + var value = p.GetValue(anonymousType, null); + var name = p.Name.ToLower(); + + if (name.EndsWith("enum") && value.GetType().BaseType == typeof(System.Enum)) + { + value = new Microsoft.Xrm.Sdk.OptionSetValue((int) value); + name = name.Remove(name.Length - "enum".Length); + } + + switch (name) + { + case "id": + base.Id = (System.Guid)value; + Attributes["ecer_postsecondaryinstitutesitevisitid"] = base.Id; + break; + case "ecer_postsecondaryinstitutesitevisitid": + var id = (System.Nullable) value; + if(id == null){ continue; } + base.Id = id.Value; + Attributes[name] = base.Id; + break; + case "formattedvalues": + // Add Support for FormattedValues + FormattedValues.AddRange((Microsoft.Xrm.Sdk.FormattedValueCollection)value); + break; + default: + Attributes[name] = value; + break; + } + } + } + } +} +#pragma warning restore CS1591 diff --git a/src/ECER.Utilities.DataverseSdk/Model/OptionSets/ecer_PSIApplicationType.cs b/src/ECER.Utilities.DataverseSdk/Model/OptionSets/ecer_PSIApplicationType.cs new file mode 100644 index 000000000..945602c68 --- /dev/null +++ b/src/ECER.Utilities.DataverseSdk/Model/OptionSets/ecer_PSIApplicationType.cs @@ -0,0 +1,45 @@ +#pragma warning disable CS1591 +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace ECER.Utilities.DataverseSdk.Model +{ + + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.6")] + public enum ecer_PSIApplicationType + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + AdditionalCampusatRecognizedInstitutionPrivateOnly = 621870005, + + [System.Runtime.Serialization.EnumMemberAttribute()] + CurriculumRevisionsatRecognizedInstitutionPublicPrivateContinuingEd = 621870006, + + [System.Runtime.Serialization.EnumMemberAttribute()] + NewCampusNotificationPublicOnly = 621870004, + + [System.Runtime.Serialization.EnumMemberAttribute()] + NewECEProgramPublicPrivateContinuingEd = 621870000, + + [System.Runtime.Serialization.EnumMemberAttribute()] + OnlineorHybridProgramPublicPrivateContinuingEd = 621870002, + + [System.Runtime.Serialization.EnumMemberAttribute()] + PostBasicProgramPublicPrivateContinuingEd = 621870001, + + [System.Runtime.Serialization.EnumMemberAttribute()] + SatelliteProgramPublicPrivateContinuingEd = 621870003, + + [System.Runtime.Serialization.EnumMemberAttribute()] + WorkIntegratedLearningProgramPublicOnly = 621870007, + } +} +#pragma warning restore CS1591 diff --git a/src/ECER.Utilities.DataverseSdk/Model/OptionSets/ecer_PSIDeliveryType.cs b/src/ECER.Utilities.DataverseSdk/Model/OptionSets/ecer_PSIDeliveryType.cs new file mode 100644 index 000000000..53fbc7b06 --- /dev/null +++ b/src/ECER.Utilities.DataverseSdk/Model/OptionSets/ecer_PSIDeliveryType.cs @@ -0,0 +1,33 @@ +#pragma warning disable CS1591 +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace ECER.Utilities.DataverseSdk.Model +{ + + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.6")] + public enum ecer_PSIDeliveryType + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + Hybrid = 621870001, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Inperson = 621870000, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Online = 621870002, + + [System.Runtime.Serialization.EnumMemberAttribute()] + WorkIntegratedLearning = 621870003, + } +} +#pragma warning restore CS1591 diff --git a/src/ECER.Utilities.DataverseSdk/Model/OptionSets/ecer_PSIInstitutionType.cs b/src/ECER.Utilities.DataverseSdk/Model/OptionSets/ecer_PSIInstitutionType.cs new file mode 100644 index 000000000..9431355ee --- /dev/null +++ b/src/ECER.Utilities.DataverseSdk/Model/OptionSets/ecer_PSIInstitutionType.cs @@ -0,0 +1,30 @@ +#pragma warning disable CS1591 +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace ECER.Utilities.DataverseSdk.Model +{ + + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.6")] + public enum ecer_PSIInstitutionType + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + ContinuingEducation = 621870002, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Private = 621870000, + + [System.Runtime.Serialization.EnumMemberAttribute()] + Public = 621870001, + } +} +#pragma warning restore CS1591 diff --git a/src/ECER.Utilities.DataverseSdk/Model/OptionSets/ecer_PSIProjectedLength.cs b/src/ECER.Utilities.DataverseSdk/Model/OptionSets/ecer_PSIProjectedLength.cs new file mode 100644 index 000000000..a0c521571 --- /dev/null +++ b/src/ECER.Utilities.DataverseSdk/Model/OptionSets/ecer_PSIProjectedLength.cs @@ -0,0 +1,36 @@ +#pragma warning disable CS1591 +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace ECER.Utilities.DataverseSdk.Model +{ + + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.6")] + public enum ecer_PSIProjectedLength + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + _10Months = 621870001, + + [System.Runtime.Serialization.EnumMemberAttribute()] + _12Months = 621870002, + + [System.Runtime.Serialization.EnumMemberAttribute()] + _24Months = 621870003, + + [System.Runtime.Serialization.EnumMemberAttribute()] + _30Months = 621870004, + + [System.Runtime.Serialization.EnumMemberAttribute()] + _8Months = 621870000, + } +} +#pragma warning restore CS1591 diff --git a/src/ECER.Utilities.DataverseSdk/Model/OptionSets/ecer_PSIProvincialCertificationTypeOffered.cs b/src/ECER.Utilities.DataverseSdk/Model/OptionSets/ecer_PSIProvincialCertificationTypeOffered.cs new file mode 100644 index 000000000..1b2cb68cc --- /dev/null +++ b/src/ECER.Utilities.DataverseSdk/Model/OptionSets/ecer_PSIProvincialCertificationTypeOffered.cs @@ -0,0 +1,33 @@ +#pragma warning disable CS1591 +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace ECER.Utilities.DataverseSdk.Model +{ + + + [System.Runtime.Serialization.DataContractAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("Dataverse Model Builder", "2.0.0.6")] + public enum ecer_PSIProvincialCertificationTypeOffered + { + + [System.Runtime.Serialization.EnumMemberAttribute()] + ECEBasic = 621870000, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ITE = 621870001, + + [System.Runtime.Serialization.EnumMemberAttribute()] + ITESNE = 621870003, + + [System.Runtime.Serialization.EnumMemberAttribute()] + SNE = 621870002, + } +} +#pragma warning restore CS1591 diff --git a/src/ECER.Utilities.DataverseSdk/Model/ecer.xml b/src/ECER.Utilities.DataverseSdk/Model/ecer.xml index fa47cbbd4..05cf09639 100644 --- a/src/ECER.Utilities.DataverseSdk/Model/ecer.xml +++ b/src/ECER.Utilities.DataverseSdk/Model/ecer.xml @@ -116,7 +116,7 @@ VoiceMail ECER.Utilities.DataverseSdk.Model EcerContext false - 2.2024.2.1 + 2.2024.1.23 true - 2.2024.2.1 + 2.2024.1.23 \ No newline at end of file