FrameworkTemplate/SolutionTemplate/Models/Entities/businessunit.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> /// Type of address for address 1, such as billing, shipping, or primary address. /// </summary> [System.Runtime.Serialization.DataContractAttribute()] public enum businessunit_address1_addresstypecode { [System.Runtime.Serialization.EnumMemberAttribute()] DefaultValue = 1, } /// <summary> /// Method of shipment for address 1. /// </summary> [System.Runtime.Serialization.DataContractAttribute()] public enum businessunit_address1_shippingmethodcode { [System.Runtime.Serialization.EnumMemberAttribute()] DefaultValue = 1, } /// <summary> /// Type of address for address 2, such as billing, shipping, or primary address. /// </summary> [System.Runtime.Serialization.DataContractAttribute()] public enum businessunit_address2_addresstypecode { [System.Runtime.Serialization.EnumMemberAttribute()] DefaultValue = 1, } /// <summary> /// Method of shipment for address 2. /// </summary> [System.Runtime.Serialization.DataContractAttribute()] public enum businessunit_address2_shippingmethodcode { [System.Runtime.Serialization.EnumMemberAttribute()] DefaultValue = 1, } /// <summary> /// Business, division, or department in the Microsoft Dynamics 365 database. /// </summary> [System.Runtime.Serialization.DataContractAttribute()] [Microsoft.Xrm.Sdk.Client.EntityLogicalNameAttribute("businessunit")] public partial class BusinessUnit : Microsoft.Xrm.Sdk.Entity { /// <summary> /// Available fields, a the time of codegen, for the businessunit entity /// </summary> public partial class Fields { public const string Address1_AddressId = "address1_addressid"; public const string Address1_AddressTypeCode = "address1_addresstypecode"; public const string Address1_City = "address1_city"; public const string Address1_Country = "address1_country"; public const string Address1_County = "address1_county"; public const string Address1_Fax = "address1_fax"; public const string Address1_Latitude = "address1_latitude"; public const string Address1_Line1 = "address1_line1"; public const string Address1_Line2 = "address1_line2"; public const string Address1_Line3 = "address1_line3"; public const string Address1_Longitude = "address1_longitude"; public const string Address1_Name = "address1_name"; public const string Address1_PostalCode = "address1_postalcode"; public const string Address1_PostOfficeBox = "address1_postofficebox"; public const string Address1_ShippingMethodCode = "address1_shippingmethodcode"; public const string Address1_StateOrProvince = "address1_stateorprovince"; public const string Address1_Telephone1 = "address1_telephone1"; public const string Address1_Telephone2 = "address1_telephone2"; public const string Address1_Telephone3 = "address1_telephone3"; public const string Address1_UPSZone = "address1_upszone"; public const string Address1_UTCOffset = "address1_utcoffset"; public const string Address2_AddressId = "address2_addressid"; public const string Address2_AddressTypeCode = "address2_addresstypecode"; public const string Address2_City = "address2_city"; public const string Address2_Country = "address2_country"; public const string Address2_County = "address2_county"; public const string Address2_Fax = "address2_fax"; public const string Address2_Latitude = "address2_latitude"; public const string Address2_Line1 = "address2_line1"; public const string Address2_Line2 = "address2_line2"; public const string Address2_Line3 = "address2_line3"; public const string Address2_Longitude = "address2_longitude"; public const string Address2_Name = "address2_name"; public const string Address2_PostalCode = "address2_postalcode"; public const string Address2_PostOfficeBox = "address2_postofficebox"; public const string Address2_ShippingMethodCode = "address2_shippingmethodcode"; public const string Address2_StateOrProvince = "address2_stateorprovince"; public const string Address2_Telephone1 = "address2_telephone1"; public const string Address2_Telephone2 = "address2_telephone2"; public const string Address2_Telephone3 = "address2_telephone3"; public const string Address2_UPSZone = "address2_upszone"; public const string Address2_UTCOffset = "address2_utcoffset"; public const string BusinessUnitId = "businessunitid"; public const string Id = "businessunitid"; public const string CalendarId = "calendarid"; public const string CostCenter = "costcenter"; public const string CreatedBy = "createdby"; public const string CreatedOn = "createdon"; public const string CreatedOnBehalfBy = "createdonbehalfby"; public const string CreditLimit = "creditlimit"; public const string Description = "description"; public const string DisabledReason = "disabledreason"; public const string DivisionName = "divisionname"; public const string EMailAddress = "emailaddress"; public const string ExchangeRate = "exchangerate"; public const string FileAsName = "fileasname"; public const string FtpSiteUrl = "ftpsiteurl"; public const string ImportSequenceNumber = "importsequencenumber"; public const string InheritanceMask = "inheritancemask"; public const string IsDisabled = "isdisabled"; 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 ParentBusinessUnitId = "parentbusinessunitid"; public const string Picture = "picture"; public const string StockExchange = "stockexchange"; public const string TickerSymbol = "tickersymbol"; public const string TransactionCurrencyId = "transactioncurrencyid"; public const string UTCOffset = "utcoffset"; public const string VersionNumber = "versionnumber"; public const string WebSiteUrl = "websiteurl"; public const string WorkflowSuspended = "workflowsuspended"; public const string business_unit_environmentvariabledefinition = "business_unit_environmentvariabledefinition"; public const string business_unit_environmentvariablevalue = "business_unit_environmentvariablevalue"; public const string Referencedbusiness_unit_parent_business_unit = "Referencedbusiness_unit_parent_business_unit"; public const string business_unit_system_users = "business_unit_system_users"; public const string business_unit_teams = "business_unit_teams"; public const string Referencingbusiness_unit_parent_business_unit = "business_unit_parent_business_unit"; public const string lk_businessunit_createdonbehalfby = "lk_businessunit_createdonbehalfby"; public const string lk_businessunit_modifiedonbehalfby = "lk_businessunit_modifiedonbehalfby"; public const string lk_businessunitbase_createdby = "lk_businessunitbase_createdby"; public const string lk_businessunitbase_modifiedby = "lk_businessunitbase_modifiedby"; } /// <summary> /// Default Constructor. /// </summary> public BusinessUnit() : base(EntityLogicalName) { } public const string EntityLogicalName = "businessunit"; public const string EntityLogicalCollectionName = "businessunits"; public const string EntitySetName = "businessunits"; /// <summary> /// Unique identifier for address 1. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addressid")] public System.Nullable<System.Guid> Address1_AddressId { get { return this.GetAttributeValue<System.Nullable<System.Guid>>("address1_addressid"); } set { this.SetAttributeValue("address1_addressid", value); } } /// <summary> /// Type of address for address 1, such as billing, shipping, or primary address. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_addresstypecode")] public virtual businessunit_address1_addresstypecode? Address1_AddressTypeCode { get { return ((businessunit_address1_addresstypecode?)(EntityOptionSetEnum.GetEnum(this, "address1_addresstypecode"))); } set { this.SetAttributeValue("address1_addresstypecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); } } /// <summary> /// City name for address 1. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_city")] public string Address1_City { get { return this.GetAttributeValue<string>("address1_city"); } set { this.SetAttributeValue("address1_city", value); } } /// <summary> /// Country/region name for address 1. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_country")] public string Address1_Country { get { return this.GetAttributeValue<string>("address1_country"); } set { this.SetAttributeValue("address1_country", value); } } /// <summary> /// County name for address 1. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_county")] public string Address1_County { get { return this.GetAttributeValue<string>("address1_county"); } set { this.SetAttributeValue("address1_county", value); } } /// <summary> /// Fax number for address 1. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_fax")] public string Address1_Fax { get { return this.GetAttributeValue<string>("address1_fax"); } set { this.SetAttributeValue("address1_fax", value); } } /// <summary> /// Latitude for address 1. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_latitude")] public System.Nullable<double> Address1_Latitude { get { return this.GetAttributeValue<System.Nullable<double>>("address1_latitude"); } set { this.SetAttributeValue("address1_latitude", value); } } /// <summary> /// First line for entering address 1 information. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line1")] public string Address1_Line1 { get { return this.GetAttributeValue<string>("address1_line1"); } set { this.SetAttributeValue("address1_line1", value); } } /// <summary> /// Second line for entering address 1 information. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line2")] public string Address1_Line2 { get { return this.GetAttributeValue<string>("address1_line2"); } set { this.SetAttributeValue("address1_line2", value); } } /// <summary> /// Third line for entering address 1 information. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_line3")] public string Address1_Line3 { get { return this.GetAttributeValue<string>("address1_line3"); } set { this.SetAttributeValue("address1_line3", value); } } /// <summary> /// Longitude for address 1. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_longitude")] public System.Nullable<double> Address1_Longitude { get { return this.GetAttributeValue<System.Nullable<double>>("address1_longitude"); } set { this.SetAttributeValue("address1_longitude", value); } } /// <summary> /// Name to enter for address 1. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_name")] public string Address1_Name { get { return this.GetAttributeValue<string>("address1_name"); } set { this.SetAttributeValue("address1_name", value); } } /// <summary> /// ZIP Code or postal code for address 1. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postalcode")] public string Address1_PostalCode { get { return this.GetAttributeValue<string>("address1_postalcode"); } set { this.SetAttributeValue("address1_postalcode", value); } } /// <summary> /// Post office box number for address 1. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_postofficebox")] public string Address1_PostOfficeBox { get { return this.GetAttributeValue<string>("address1_postofficebox"); } set { this.SetAttributeValue("address1_postofficebox", value); } } /// <summary> /// Method of shipment for address 1. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_shippingmethodcode")] public virtual businessunit_address1_shippingmethodcode? Address1_ShippingMethodCode { get { return ((businessunit_address1_shippingmethodcode?)(EntityOptionSetEnum.GetEnum(this, "address1_shippingmethodcode"))); } set { this.SetAttributeValue("address1_shippingmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); } } /// <summary> /// State or province for address 1. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_stateorprovince")] public string Address1_StateOrProvince { get { return this.GetAttributeValue<string>("address1_stateorprovince"); } set { this.SetAttributeValue("address1_stateorprovince", value); } } /// <summary> /// First telephone number associated with address 1. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone1")] public string Address1_Telephone1 { get { return this.GetAttributeValue<string>("address1_telephone1"); } set { this.SetAttributeValue("address1_telephone1", value); } } /// <summary> /// Second telephone number associated with address 1. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone2")] public string Address1_Telephone2 { get { return this.GetAttributeValue<string>("address1_telephone2"); } set { this.SetAttributeValue("address1_telephone2", value); } } /// <summary> /// Third telephone number associated with address 1. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_telephone3")] public string Address1_Telephone3 { get { return this.GetAttributeValue<string>("address1_telephone3"); } set { this.SetAttributeValue("address1_telephone3", value); } } /// <summary> /// United Parcel Service (UPS) zone for address 1. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_upszone")] public string Address1_UPSZone { get { return this.GetAttributeValue<string>("address1_upszone"); } set { this.SetAttributeValue("address1_upszone", value); } } /// <summary> /// UTC offset for address 1. This is the difference between local time and standard Coordinated Universal Time. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address1_utcoffset")] public System.Nullable<int> Address1_UTCOffset { get { return this.GetAttributeValue<System.Nullable<int>>("address1_utcoffset"); } set { this.SetAttributeValue("address1_utcoffset", value); } } /// <summary> /// Unique identifier for address 2. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addressid")] public System.Nullable<System.Guid> Address2_AddressId { get { return this.GetAttributeValue<System.Nullable<System.Guid>>("address2_addressid"); } set { this.SetAttributeValue("address2_addressid", value); } } /// <summary> /// Type of address for address 2, such as billing, shipping, or primary address. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_addresstypecode")] public virtual businessunit_address2_addresstypecode? Address2_AddressTypeCode { get { return ((businessunit_address2_addresstypecode?)(EntityOptionSetEnum.GetEnum(this, "address2_addresstypecode"))); } set { this.SetAttributeValue("address2_addresstypecode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); } } /// <summary> /// City name for address 2. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_city")] public string Address2_City { get { return this.GetAttributeValue<string>("address2_city"); } set { this.SetAttributeValue("address2_city", value); } } /// <summary> /// Country/region name for address 2. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_country")] public string Address2_Country { get { return this.GetAttributeValue<string>("address2_country"); } set { this.SetAttributeValue("address2_country", value); } } /// <summary> /// County name for address 2. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_county")] public string Address2_County { get { return this.GetAttributeValue<string>("address2_county"); } set { this.SetAttributeValue("address2_county", value); } } /// <summary> /// Fax number for address 2. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_fax")] public string Address2_Fax { get { return this.GetAttributeValue<string>("address2_fax"); } set { this.SetAttributeValue("address2_fax", value); } } /// <summary> /// Latitude for address 2. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_latitude")] public System.Nullable<double> Address2_Latitude { get { return this.GetAttributeValue<System.Nullable<double>>("address2_latitude"); } set { this.SetAttributeValue("address2_latitude", value); } } /// <summary> /// First line for entering address 2 information. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line1")] public string Address2_Line1 { get { return this.GetAttributeValue<string>("address2_line1"); } set { this.SetAttributeValue("address2_line1", value); } } /// <summary> /// Second line for entering address 2 information. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line2")] public string Address2_Line2 { get { return this.GetAttributeValue<string>("address2_line2"); } set { this.SetAttributeValue("address2_line2", value); } } /// <summary> /// Third line for entering address 2 information. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_line3")] public string Address2_Line3 { get { return this.GetAttributeValue<string>("address2_line3"); } set { this.SetAttributeValue("address2_line3", value); } } /// <summary> /// Longitude for address 2. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_longitude")] public System.Nullable<double> Address2_Longitude { get { return this.GetAttributeValue<System.Nullable<double>>("address2_longitude"); } set { this.SetAttributeValue("address2_longitude", value); } } /// <summary> /// Name to enter for address 2. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_name")] public string Address2_Name { get { return this.GetAttributeValue<string>("address2_name"); } set { this.SetAttributeValue("address2_name", value); } } /// <summary> /// ZIP Code or postal code for address 2. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postalcode")] public string Address2_PostalCode { get { return this.GetAttributeValue<string>("address2_postalcode"); } set { this.SetAttributeValue("address2_postalcode", value); } } /// <summary> /// Post office box number for address 2. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_postofficebox")] public string Address2_PostOfficeBox { get { return this.GetAttributeValue<string>("address2_postofficebox"); } set { this.SetAttributeValue("address2_postofficebox", value); } } /// <summary> /// Method of shipment for address 2. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_shippingmethodcode")] public virtual businessunit_address2_shippingmethodcode? Address2_ShippingMethodCode { get { return ((businessunit_address2_shippingmethodcode?)(EntityOptionSetEnum.GetEnum(this, "address2_shippingmethodcode"))); } set { this.SetAttributeValue("address2_shippingmethodcode", value.HasValue ? new Microsoft.Xrm.Sdk.OptionSetValue((int)value) : null); } } /// <summary> /// State or province for address 2. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_stateorprovince")] public string Address2_StateOrProvince { get { return this.GetAttributeValue<string>("address2_stateorprovince"); } set { this.SetAttributeValue("address2_stateorprovince", value); } } /// <summary> /// First telephone number associated with address 2. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone1")] public string Address2_Telephone1 { get { return this.GetAttributeValue<string>("address2_telephone1"); } set { this.SetAttributeValue("address2_telephone1", value); } } /// <summary> /// Second telephone number associated with address 2. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone2")] public string Address2_Telephone2 { get { return this.GetAttributeValue<string>("address2_telephone2"); } set { this.SetAttributeValue("address2_telephone2", value); } } /// <summary> /// Third telephone number associated with address 2. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_telephone3")] public string Address2_Telephone3 { get { return this.GetAttributeValue<string>("address2_telephone3"); } set { this.SetAttributeValue("address2_telephone3", value); } } /// <summary> /// United Parcel Service (UPS) zone for address 2. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_upszone")] public string Address2_UPSZone { get { return this.GetAttributeValue<string>("address2_upszone"); } set { this.SetAttributeValue("address2_upszone", value); } } /// <summary> /// UTC offset for address 2. This is the difference between local time and standard Coordinated Universal Time. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("address2_utcoffset")] public System.Nullable<int> Address2_UTCOffset { get { return this.GetAttributeValue<System.Nullable<int>>("address2_utcoffset"); } set { this.SetAttributeValue("address2_utcoffset", value); } } /// <summary> /// Unique identifier of the business unit. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] public System.Nullable<System.Guid> BusinessUnitId { get { return this.GetAttributeValue<System.Nullable<System.Guid>>("businessunitid"); } set { this.SetAttributeValue("businessunitid", value); if (value.HasValue) { base.Id = value.Value; } else { base.Id = System.Guid.Empty; } } } [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("businessunitid")] public override System.Guid Id { get { return base.Id; } set { this.BusinessUnitId = value; } } /// <summary> /// Fiscal calendar associated with the business unit. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("calendarid")] public Microsoft.Xrm.Sdk.EntityReference CalendarId { get { return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("calendarid"); } set { this.SetAttributeValue("calendarid", value); } } /// <summary> /// Name of the business unit cost center. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("costcenter")] public string CostCenter { get { return this.GetAttributeValue<string>("costcenter"); } set { this.SetAttributeValue("costcenter", value); } } /// <summary> /// Unique identifier of the user who created the business unit. /// </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 business unit 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 businessunit. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] public Microsoft.Xrm.Sdk.EntityReference CreatedOnBehalfBy { get { return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("createdonbehalfby"); } } /// <summary> /// Credit limit for the business unit. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("creditlimit")] public System.Nullable<double> CreditLimit { get { return this.GetAttributeValue<System.Nullable<double>>("creditlimit"); } set { this.SetAttributeValue("creditlimit", value); } } /// <summary> /// Description of the business unit. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("description")] public string Description { get { return this.GetAttributeValue<string>("description"); } set { this.SetAttributeValue("description", value); } } /// <summary> /// Reason for disabling the business unit. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("disabledreason")] public string DisabledReason { get { return this.GetAttributeValue<string>("disabledreason"); } } /// <summary> /// Name of the division to which the business unit belongs. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("divisionname")] public string DivisionName { get { return this.GetAttributeValue<string>("divisionname"); } set { this.SetAttributeValue("divisionname", value); } } /// <summary> /// Email address for the business unit. /// </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 businessunit 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> /// Alternative name under which the business unit can be filed. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("fileasname")] public string FileAsName { get { return this.GetAttributeValue<string>("fileasname"); } set { this.SetAttributeValue("fileasname", value); } } /// <summary> /// FTP site URL for the business unit. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("ftpsiteurl")] public string FtpSiteUrl { get { return this.GetAttributeValue<string>("ftpsiteurl"); } set { this.SetAttributeValue("ftpsiteurl", value); } } /// <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> /// Inheritance mask for the business unit. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("inheritancemask")] public System.Nullable<int> InheritanceMask { get { return this.GetAttributeValue<System.Nullable<int>>("inheritancemask"); } set { this.SetAttributeValue("inheritancemask", value); } } /// <summary> /// Information about whether the business unit is enabled or disabled. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("isdisabled")] public System.Nullable<bool> IsDisabled { get { return this.GetAttributeValue<System.Nullable<bool>>("isdisabled"); } set { this.SetAttributeValue("isdisabled", value); } } /// <summary> /// Unique identifier of the user who last modified the business unit. /// </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 business unit 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 businessunit. /// </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 business unit. /// </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 business unit. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("organizationid")] public Microsoft.Xrm.Sdk.EntityReference OrganizationId { get { return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("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> /// Unique identifier for the parent business unit. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentbusinessunitid")] public Microsoft.Xrm.Sdk.EntityReference ParentBusinessUnitId { get { return this.GetAttributeValue<Microsoft.Xrm.Sdk.EntityReference>("parentbusinessunitid"); } set { this.SetAttributeValue("parentbusinessunitid", value); } } /// <summary> /// Picture or diagram of the business unit. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("picture")] public string Picture { get { return this.GetAttributeValue<string>("picture"); } set { this.SetAttributeValue("picture", value); } } /// <summary> /// Stock exchange on which the business is listed. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("stockexchange")] public string StockExchange { get { return this.GetAttributeValue<string>("stockexchange"); } set { this.SetAttributeValue("stockexchange", value); } } /// <summary> /// Stock exchange ticker symbol for the business unit. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("tickersymbol")] public string TickerSymbol { get { return this.GetAttributeValue<string>("tickersymbol"); } set { this.SetAttributeValue("tickersymbol", value); } } /// <summary> /// Unique identifier of the currency associated with the businessunit. /// </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> /// UTC offset for the business unit. This is the difference between local time and standard Coordinated Universal Time. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("utcoffset")] public System.Nullable<int> UTCOffset { get { return this.GetAttributeValue<System.Nullable<int>>("utcoffset"); } set { this.SetAttributeValue("utcoffset", value); } } /// <summary> /// Version number of the business unit. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("versionnumber")] public System.Nullable<long> VersionNumber { get { return this.GetAttributeValue<System.Nullable<long>>("versionnumber"); } } /// <summary> /// Website URL for the business unit. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("websiteurl")] public string WebSiteUrl { get { return this.GetAttributeValue<string>("websiteurl"); } set { this.SetAttributeValue("websiteurl", value); } } /// <summary> /// Information about whether workflow or sales process rules have been suspended. /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("workflowsuspended")] public System.Nullable<bool> WorkflowSuspended { get { return this.GetAttributeValue<System.Nullable<bool>>("workflowsuspended"); } set { this.SetAttributeValue("workflowsuspended", value); } } /// <summary> /// 1:N business_unit_environmentvariabledefinition /// </summary> [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_environmentvariabledefinition")] public System.Collections.Generic.IEnumerable<ModelBuilder.EnvironmentVariableDefinition> business_unit_environmentvariabledefinition { get { return this.GetRelatedEntities<ModelBuilder.EnvironmentVariableDefinition>("business_unit_environmentvariabledefinition", null); } set { this.SetRelatedEntities<ModelBuilder.EnvironmentVariableDefinition>("business_unit_environmentvariabledefinition", null, value); } } /// <summary> /// 1:N business_unit_environmentvariablevalue /// </summary> [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_environmentvariablevalue")] public System.Collections.Generic.IEnumerable<ModelBuilder.EnvironmentVariableValue> business_unit_environmentvariablevalue { get { return this.GetRelatedEntities<ModelBuilder.EnvironmentVariableValue>("business_unit_environmentvariablevalue", null); } set { this.SetRelatedEntities<ModelBuilder.EnvironmentVariableValue>("business_unit_environmentvariablevalue", null, value); } } /// <summary> /// 1:N business_unit_parent_business_unit /// </summary> [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_parent_business_unit", Microsoft.Xrm.Sdk.EntityRole.Referenced)] public System.Collections.Generic.IEnumerable<ModelBuilder.BusinessUnit> Referencedbusiness_unit_parent_business_unit { get { return this.GetRelatedEntities<ModelBuilder.BusinessUnit>("business_unit_parent_business_unit", Microsoft.Xrm.Sdk.EntityRole.Referenced); } set { this.SetRelatedEntities<ModelBuilder.BusinessUnit>("business_unit_parent_business_unit", Microsoft.Xrm.Sdk.EntityRole.Referenced, value); } } /// <summary> /// 1:N business_unit_system_users /// </summary> [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_system_users")] public System.Collections.Generic.IEnumerable<ModelBuilder.SystemUser> business_unit_system_users { get { return this.GetRelatedEntities<ModelBuilder.SystemUser>("business_unit_system_users", null); } set { this.SetRelatedEntities<ModelBuilder.SystemUser>("business_unit_system_users", null, value); } } /// <summary> /// 1:N business_unit_teams /// </summary> [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_teams")] public System.Collections.Generic.IEnumerable<ModelBuilder.Team> business_unit_teams { get { return this.GetRelatedEntities<ModelBuilder.Team>("business_unit_teams", null); } set { this.SetRelatedEntities<ModelBuilder.Team>("business_unit_teams", null, value); } } /// <summary> /// N:1 business_unit_parent_business_unit /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("parentbusinessunitid")] [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("business_unit_parent_business_unit", Microsoft.Xrm.Sdk.EntityRole.Referencing)] public ModelBuilder.BusinessUnit Referencingbusiness_unit_parent_business_unit { get { return this.GetRelatedEntity<ModelBuilder.BusinessUnit>("business_unit_parent_business_unit", Microsoft.Xrm.Sdk.EntityRole.Referencing); } set { this.SetRelatedEntity<ModelBuilder.BusinessUnit>("business_unit_parent_business_unit", Microsoft.Xrm.Sdk.EntityRole.Referencing, value); } } /// <summary> /// N:1 lk_businessunit_createdonbehalfby /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdonbehalfby")] [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunit_createdonbehalfby")] public ModelBuilder.SystemUser lk_businessunit_createdonbehalfby { get { return this.GetRelatedEntity<ModelBuilder.SystemUser>("lk_businessunit_createdonbehalfby", null); } } /// <summary> /// N:1 lk_businessunit_modifiedonbehalfby /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedonbehalfby")] [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunit_modifiedonbehalfby")] public ModelBuilder.SystemUser lk_businessunit_modifiedonbehalfby { get { return this.GetRelatedEntity<ModelBuilder.SystemUser>("lk_businessunit_modifiedonbehalfby", null); } } /// <summary> /// N:1 lk_businessunitbase_createdby /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("createdby")] [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitbase_createdby")] public ModelBuilder.SystemUser lk_businessunitbase_createdby { get { return this.GetRelatedEntity<ModelBuilder.SystemUser>("lk_businessunitbase_createdby", null); } } /// <summary> /// N:1 lk_businessunitbase_modifiedby /// </summary> [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("modifiedby")] [Microsoft.Xrm.Sdk.RelationshipSchemaNameAttribute("lk_businessunitbase_modifiedby")] public ModelBuilder.SystemUser lk_businessunitbase_modifiedby { get { return this.GetRelatedEntity<ModelBuilder.SystemUser>("lk_businessunitbase_modifiedby", null); } } } } #pragma warning restore CS1591 |