/// <summary>
 /// Create a new SubMaterial object.
 /// </summary>
 /// <param name="subMaterialsNameID">Initial value of the SubMaterialsNameID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="materialNameID">Initial value of the MaterialNameID property.</param>
 public static SubMaterial CreateSubMaterial(global::System.Int64 subMaterialsNameID, global::System.String name, global::System.Int32 materialNameID)
 {
     SubMaterial subMaterial = new SubMaterial();
     subMaterial.SubMaterialsNameID = subMaterialsNameID;
     subMaterial.Name = name;
     subMaterial.MaterialNameID = materialNameID;
     return subMaterial;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the SubMaterials EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSubMaterials(SubMaterial subMaterial)
 {
     base.AddObject("SubMaterials", subMaterial);
 }