FrameworkTemplate/SolutionTemplate/Models/Entities/team.cs
#pragma warning disable CS1591
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace ModelBuilder { /// <summary> /// Information about team membership type. /// </summary> [System.Runtime.Serialization.DataContractAttribute()] public enum team_membershiptype { [System.Runtime.Serialization.EnumMemberAttribute()] Membersandguests = 0, [System.Runtime.Serialization.EnumMemberAttribute()] Members = 1, [System.Runtime.Serialization.EnumMemberAttribute()] Owners = 2, [System.Runtime.Serialization.EnumMemberAttribute()] Guests = 3, } /// <summary> /// Information about team type. /// </summary> [System.Runtime.Serialization.DataContractAttribute()] public enum team_type { [System.Runtime.Serialization.EnumMemberAttribute()] Owner = 0, [System.Runtime.Serialization.EnumMemberAttribute()] Access = 1, [System.Runtime.Serialization.EnumMemberAttribute()] SecurityGroup = 2, [System.Runtime.Serialization.EnumMemberAttribute()] OfficeGroup = 3, } /// <summary> /// Collection of system users that routinely collaborate. Teams can be used to simplify record sharing and provide team members with common access to organization data when team members belong to different Business Units. /// </summary> [System.Runtime.Serialization.DataContractAttribute()] [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("team")] public partial class Team : Microsoft.Xrm.Sdk.Entity { /// <summary> /// Available fields, a the time of codegen, for the team entity /// </summary> public partial class Fields { public const string AdministratorId = "administratorid"; public const string AzureActiveDirectoryObjectId = "azureactivedirectoryobjectid"; public const string BusinessUnitId = "businessunitid"; public const string CreatedBy = "createdby"; public const string CreatedOn = "createdon"; public const string CreatedOnBehalfBy = "createdonbehalfby"; public const string DelegatedAuthorizationId = "delegatedauthorizationid"; public const string Description = "description"; public const string EMailAddress = "emailaddress"; public const string ExchangeRate = "exchangerate"; public const string ImportSequenceNumber = "importsequencenumber"; public const string IsDefault = "isdefault"; public const string IsSasTokenSet = "issastokenset"; public const string MembershipType = "membershiptype"; public const string ModifiedBy = "modifiedby"; public const string ModifiedOn = "modifiedon"; public const string ModifiedOnBehalfBy = "modifiedonbehalfby"; public const string Name = "name"; public const string OrganizationId = "organizationid"; public const string OverriddenCreatedOn = "overriddencreatedon"; public const string ProcessId = "processid"; public const string QueueId = "queueid"; public const string RegardingObjectId = "regardingobjectid"; public const string ShareLinkQualifier = "sharelinkqualifier"; public const string StageId = "stageid"; public const string SystemManaged = "systemmanaged"; public const string TeamId = "teamid"; public const string Id = "teamid"; public const string TeamTemplateId = "teamtemplateid"; public const string TeamType = "teamtype"; public const string TransactionCurrencyId = "transactioncurrencyid"; public const string TraversedPath = "traversedpath"; public const string VersionNumber = "versionnumber"; public const string YomiName = "yominame"; public const string team_environmentvariabledefinition = "team_environmentvariabledefinition"; public const string team_environmentvariablevalue = "team_environmentvariablevalue"; public const string teammembership_association = "teammembership_association"; public const string business_unit_teams = "business_unit_teams"; public const string lk_team_createdonbehalfby = "lk_team_createdonbehalfby"; public const string lk_team_modifiedonbehalfby = "lk_team_modifiedonbehalfby"; public const string lk_teambase_administratorid = "lk_teambase_administratorid"; public const string lk_teambase_createdby = "lk_teambase_createdby"; public const string lk_teambase_modifiedby = "lk_teambase_modifiedby"; } /// <summary> /// Default Constructor. /// </summary> public Team() : base(EntityLogicalName) { } public const string EntityLogicalName = "team"; public const string EntityLogicalCollectionName = "teams"; public const string EntitySetName = "teams"; /// <summary> /// Unique identifier of the user primary responsible for the team. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("administratorid")] public Microsoft.Xrm.Sdk.EntityReference AdministratorId { get { return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("administratorid"); } set { this.SetAttributeValue("administratorid", value); } } /// <summary> /// The object Id for a group. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("azureactivedirectoryobjectid")] public System.Nullable<System.Guid> AzureActiveDirectoryObjectId { get { return this.GetAttributeValue<System.Nullable<System.Guid>>("azureactivedirectoryobjectid"); } set { this.SetAttributeValue("azureactivedirectoryobjectid", value); } } /// <summary> /// Unique identifier of the business unit with which the team is associated. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] public Microsoft.Xrm.Sdk.EntityReference BusinessUnitId { get { return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("businessunitid"); } set { this.SetAttributeValue("businessunitid", value); } } /// <summary> /// Unique identifier of the user who created the team. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] public Microsoft.Xrm.Sdk.EntityReference CreatedBy { get { return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("createdby"); } } /// <summary> /// Date and time when the team was created. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdon")] public System.Nullable<System.DateTime> CreatedOn { get { return this.GetAttributeValue<System.Nullable<System.DateTime>>("createdon"); } } /// <summary> /// Unique identifier of the delegate user who created the team. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy { get { return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("createdonbehalfby"); } } /// <summary> /// The delegated authorization context for the team. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("delegatedauthorizationid")] public Microsoft.Xrm.Sdk.EntityReference DelegatedAuthorizationId { get { return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("delegatedauthorizationid"); } set { this.SetAttributeValue("delegatedauthorizationid", value); } } /// <summary> /// Description of the team. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] public string Description { get { return this.GetAttributeValue<string>("description"); } set { this.SetAttributeValue("description", value); } } /// <summary> /// Email address for the team. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("emailaddress")] public string EMailAddress { get { return this.GetAttributeValue<string>("emailaddress"); } set { this.SetAttributeValue("emailaddress", value); } } /// <summary> /// Exchange rate for the currency associated with the team with respect to the base currency. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("exchangerate")] public System.Nullable<decimal> ExchangeRate { get { return this.GetAttributeValue<System.Nullable<decimal>>("exchangerate"); } } /// <summary> /// Unique identifier of the data import or data migration that created this record. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("importsequencenumber")] public System.Nullable<int> ImportSequenceNumber { get { return this.GetAttributeValue<System.Nullable<int>>("importsequencenumber"); } set { this.SetAttributeValue("importsequencenumber", value); } } /// <summary> /// Information about whether the team is a default business unit team. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdefault")] public System.Nullable<bool> IsDefault { get { return this.GetAttributeValue<System.Nullable<bool>>("isdefault"); } } [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("issastokenset")] public System.Nullable<bool> IsSasTokenSet { get { return this.GetAttributeValue<System.Nullable<bool>>("issastokenset"); } } [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("membershiptype")] public virtual team_membershiptype? MembershipType { get { return ((team_membershiptype?)(EntityOptionSetEnum.GetEnum(this, "membershiptype"))); } set { this.SetAttributeValue("membershiptype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); } } /// <summary> /// Unique identifier of the user who last modified the team. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] public Microsoft.Xrm.Sdk.EntityReference ModifiedBy { get { return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("modifiedby"); } } /// <summary> /// Date and time when the team was last modified. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedon")] public System.Nullable<System.DateTime> ModifiedOn { get { return this.GetAttributeValue<System.Nullable<System.DateTime>>("modifiedon"); } } /// <summary> /// Unique identifier of the delegate user who last modified the team. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] public Microsoft.Xrm.Sdk.EntityReference ModifiedOnBehalfBy { get { return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("modifiedonbehalfby"); } } /// <summary> /// Name of the team. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("name")] public string Name { get { return this.GetAttributeValue<string>("name"); } set { this.SetAttributeValue("name", value); } } /// <summary> /// Unique identifier of the organization associated with the team. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] public System.Nullable<System.Guid> OrganizationId { get { return this.GetAttributeValue<System.Nullable<System.Guid>>("organizationid"); } } /// <summary> /// Date and time that the record was migrated. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("overriddencreatedon")] public System.Nullable<System.DateTime> OverriddenCreatedOn { get { return this.GetAttributeValue<System.Nullable<System.DateTime>>("overriddencreatedon"); } set { this.SetAttributeValue("overriddencreatedon", value); } } /// <summary> /// Shows the ID of the process. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("processid")] public System.Nullable<System.Guid> ProcessId { get { return this.GetAttributeValue<System.Nullable<System.Guid>>("processid"); } set { this.SetAttributeValue("processid", value); } } /// <summary> /// Unique identifier of the default queue for the team. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("queueid")] public Microsoft.Xrm.Sdk.EntityReference QueueId { get { return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("queueid"); } set { this.SetAttributeValue("queueid", value); } } /// <summary> /// Choose the record that the team relates to. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("regardingobjectid")] public Microsoft.Xrm.Sdk.EntityReference RegardingObjectId { get { return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("regardingobjectid"); } set { this.SetAttributeValue("regardingobjectid", value); } } /// <summary> /// For internal use only. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("sharelinkqualifier")] public string ShareLinkQualifier { get { return this.GetAttributeValue<string>("sharelinkqualifier"); } } /// <summary> /// Shows the ID of the stage. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stageid")] public System.Nullable<System.Guid> StageId { get { return this.GetAttributeValue<System.Nullable<System.Guid>>("stageid"); } set { this.SetAttributeValue("stageid", value); } } /// <summary> /// Select whether the team will be managed by the system. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("systemmanaged")] public System.Nullable<bool> SystemManaged { get { return this.GetAttributeValue<System.Nullable<bool>>("systemmanaged"); } } /// <summary> /// Unique identifier for the team. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamid")] public System.Nullable<System.Guid> TeamId { get { return this.GetAttributeValue<System.Nullable<System.Guid>>("teamid"); } set { this.SetAttributeValue("teamid", value); if (value.HasValue) { base.Id = value.Value; } else { base.Id = System.Guid.Empty; } } } [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamid")] public override System.Guid Id { get { return base.Id; } set { this.TeamId = value; } } /// <summary> /// Shows the team template that is associated with the team. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamtemplateid")] public Microsoft.Xrm.Sdk.EntityReference TeamTemplateId { get { return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("teamtemplateid"); } set { this.SetAttributeValue("teamtemplateid", value); } } /// <summary> /// Select the team type. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("teamtype")] public virtual team_type? TeamType { get { return ((team_type?)(EntityOptionSetEnum.GetEnum(this, "teamtype"))); } set { this.SetAttributeValue("teamtype", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); } } /// <summary> /// Unique identifier of the currency associated with the team. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("transactioncurrencyid")] public Microsoft.Xrm.Sdk.EntityReference TransactionCurrencyId { get { return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("transactioncurrencyid"); } set { this.SetAttributeValue("transactioncurrencyid", value); } } /// <summary> /// For internal use only. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("traversedpath")] public string TraversedPath { get { return this.GetAttributeValue<string>("traversedpath"); } set { this.SetAttributeValue("traversedpath", value); } } /// <summary> /// Version number of the team. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] public System.Nullable<long> VersionNumber { get { return this.GetAttributeValue<System.Nullable<long>>("versionnumber"); } } /// <summary> /// Pronunciation of the full name of the team, written in phonetic hiragana or katakana characters. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("yominame")] public string YomiName { get { return this.GetAttributeValue<string>("yominame"); } set { this.SetAttributeValue("yominame", value); } } /// <summary> /// 1:N team_environmentvariabledefinition /// </summary> [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_environmentvariabledefinition")] public System.Collections.Generic.IEnumerable<ModelBuilder.EnvironmentVariableDefinition> team_environmentvariabledefinition { get { return this.GetRelatedEntities<ModelBuilder.EnvironmentVariableDefinition>("team_environmentvariabledefinition", null); } set { this.SetRelatedEntities<ModelBuilder.EnvironmentVariableDefinition>("team_environmentvariabledefinition", null, value); } } /// <summary> /// 1:N team_environmentvariablevalue /// </summary> [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("team_environmentvariablevalue")] public System.Collections.Generic.IEnumerable<ModelBuilder.EnvironmentVariableValue> team_environmentvariablevalue { get { return this.GetRelatedEntities<ModelBuilder.EnvironmentVariableValue>("team_environmentvariablevalue", null); } set { this.SetRelatedEntities<ModelBuilder.EnvironmentVariableValue>("team_environmentvariablevalue", null, value); } } /// <summary> /// N:N teammembership_association /// </summary> [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("teammembership_association")] public System.Collections.Generic.IEnumerable<ModelBuilder.SystemUser> teammembership_association { get { return this.GetRelatedEntities<ModelBuilder.SystemUser>("teammembership_association", null); } set { this.SetRelatedEntities<ModelBuilder.SystemUser>("teammembership_association", null, value); } } /// <summary> /// N:1 business_unit_teams /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_teams")] public ModelBuilder.BusinessUnit business_unit_teams { get { return this.GetRelatedEntity<ModelBuilder.BusinessUnit>("business_unit_teams", null); } set { this.SetRelatedEntity<ModelBuilder.BusinessUnit>("business_unit_teams", null, value); } } /// <summary> /// N:1 lk_team_createdonbehalfby /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_team_createdonbehalfby")] public ModelBuilder.SystemUser lk_team_createdonbehalfby { get { return this.GetRelatedEntity<ModelBuilder.SystemUser>("lk_team_createdonbehalfby", null); } } /// <summary> /// N:1 lk_team_modifiedonbehalfby /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_team_modifiedonbehalfby")] public ModelBuilder.SystemUser lk_team_modifiedonbehalfby { get { return this.GetRelatedEntity<ModelBuilder.SystemUser>("lk_team_modifiedonbehalfby", null); } } /// <summary> /// N:1 lk_teambase_administratorid /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("administratorid")] [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teambase_administratorid")] public ModelBuilder.SystemUser lk_teambase_administratorid { get { return this.GetRelatedEntity<ModelBuilder.SystemUser>("lk_teambase_administratorid", null); } set { this.SetRelatedEntity<ModelBuilder.SystemUser>("lk_teambase_administratorid", null, value); } } /// <summary> /// N:1 lk_teambase_createdby /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teambase_createdby")] public ModelBuilder.SystemUser lk_teambase_createdby { get { return this.GetRelatedEntity<ModelBuilder.SystemUser>("lk_teambase_createdby", null); } } /// <summary> /// N:1 lk_teambase_modifiedby /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_teambase_modifiedby")] public ModelBuilder.SystemUser lk_teambase_modifiedby { get { return this.GetRelatedEntity<ModelBuilder.SystemUser>("lk_teambase_modifiedby", null); } } } } #pragma warning restore CS1591 |