예제 #1
0
 /// <summary>
 /// Create a new MetadataItem object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="key">Initial value of the Key property.</param>
 /// <param name="value">Initial value of the Value property.</param>
 /// <param name="packageID">Initial value of the PackageID property.</param>
 public static MetadataItem CreateMetadataItem(global::System.Int64 id, global::System.String key, global::System.String value, global::System.Int64 packageID)
 {
     MetadataItem metadataItem = new MetadataItem();
     metadataItem.ID = id;
     metadataItem.Key = key;
     metadataItem.Value = value;
     metadataItem.PackageID = packageID;
     return metadataItem;
 }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Metadata EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMetadata(MetadataItem metadataItem)
 {
     base.AddObject("Metadata", metadataItem);
 }