/// <summary> /// Deprecated Method for adding a new object to the SearchProperties EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSearchProperties(SearchProperty searchProperty) { base.AddObject("SearchProperties", searchProperty); }
/// <summary> /// Create a new SearchProperty object. /// </summary> /// <param name="propertyId">Initial value of the PropertyId property.</param> /// <param name="propertyName">Initial value of the PropertyName property.</param> /// <param name="displayName">Initial value of the DisplayName property.</param> /// <param name="shortName">Initial value of the ShortName property.</param> /// <param name="searchMenuOrder">Initial value of the SearchMenuOrder property.</param> /// <param name="propertyType">Initial value of the PropertyType property.</param> /// <param name="accessLevel">Initial value of the AccessLevel property.</param> /// <param name="isListable">Initial value of the IsListable property.</param> /// <param name="isCacheable">Initial value of the IsCacheable property.</param> /// <param name="isIndexable">Initial value of the IsIndexable property.</param> /// <param name="includeInSearchMenu">Initial value of the IncludeInSearchMenu property.</param> public static SearchProperty CreateSearchProperty(global::System.Int32 propertyId, global::System.String propertyName, global::System.String displayName, global::System.String shortName, global::System.Int32 searchMenuOrder, global::System.String propertyType, global::System.Int16 accessLevel, global::System.Boolean isListable, global::System.Boolean isCacheable, global::System.Boolean isIndexable, global::System.Boolean includeInSearchMenu) { SearchProperty searchProperty = new SearchProperty(); searchProperty.PropertyId = propertyId; searchProperty.PropertyName = propertyName; searchProperty.DisplayName = displayName; searchProperty.ShortName = shortName; searchProperty.SearchMenuOrder = searchMenuOrder; searchProperty.PropertyType = propertyType; searchProperty.AccessLevel = accessLevel; searchProperty.IsListable = isListable; searchProperty.IsCacheable = isCacheable; searchProperty.IsIndexable = isIndexable; searchProperty.IncludeInSearchMenu = includeInSearchMenu; return searchProperty; }