/// <summary> /// Deprecated Method for adding a new object to the ServiceCategoryRelations EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToServiceCategoryRelations(ServiceCategoryRelation serviceCategoryRelation) { base.AddObject("ServiceCategoryRelations", serviceCategoryRelation); }
/// <summary> /// Create a new ServiceCategoryRelation object. /// </summary> /// <param name="serviceId">Initial value of the ServiceId property.</param> /// <param name="serviceCategoryId">Initial value of the ServiceCategoryId property.</param> public static ServiceCategoryRelation CreateServiceCategoryRelation(global::System.Int32 serviceId, global::System.Int32 serviceCategoryId) { ServiceCategoryRelation serviceCategoryRelation = new ServiceCategoryRelation(); serviceCategoryRelation.ServiceId = serviceId; serviceCategoryRelation.ServiceCategoryId = serviceCategoryId; return serviceCategoryRelation; }