/// <summary> /// Create a new MaterialClass object. /// </summary> /// <param name="materialClassID">Initial value of the MaterialClassID property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="materialTypeID">Initial value of the MaterialTypeID property.</param> public static MaterialClass CreateMaterialClass(global::System.Int32 materialClassID, global::System.String name, global::System.String description, global::System.Byte materialTypeID) { MaterialClass materialClass = new MaterialClass(); materialClass.MaterialClassID = materialClassID; materialClass.Name = name; materialClass.Description = description; materialClass.MaterialTypeID = materialTypeID; return materialClass; }
/// <summary> /// Deprecated Method for adding a new object to the MaterialClasses EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMaterialClasses(MaterialClass materialClass) { base.AddObject("MaterialClasses", materialClass); }
private void DetachMaterialClasses(MaterialClass entity) { entity.MaterialType = null; }
private bool FilterMaterialClasses(MaterialClass entity) { return (entity.MaterialTypeID == this.MaterialTypeID); }
private void AttachMaterialClasses(MaterialClass entity) { entity.MaterialType = this; }
private bool FilterParentClass(MaterialClass entity) { return (entity.MaterialClassID == this.ParentClassID); }
private bool FilterChildClasses(MaterialClass entity) { return (entity.ParentClassID == this.MaterialClassID); }
private void DetachChildClasses(MaterialClass entity) { entity.ParentClass = null; }
private void AttachChildClasses(MaterialClass entity) { entity.ParentClass = this; }