/// <summary> /// Create a new Asset object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="name">Initial value of the name property.</param> /// <param name="type">Initial value of the type property.</param> /// <param name="path">Initial value of the path property.</param> /// <param name="mimeType">Initial value of the mimeType property.</param> public static Asset CreateAsset(global::System.Int32 id, global::System.String name, global::System.Int32 type, global::System.String path, global::System.String mimeType) { Asset asset = new Asset(); asset.id = id; asset.name = name; asset.type = type; asset.path = path; asset.mimeType = mimeType; return asset; }
/// <summary> /// Deprecated Method for adding a new object to the Assets EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAssets(Asset asset) { base.AddObject("Assets", asset); }