コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Resources EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToResources(Resource resource)
 {
     base.AddObject("Resources", resource);
 }
コード例 #2
0
 /// <summary>
 /// Create a new Resource object.
 /// </summary>
 /// <param name="key">Initial value of the Key property.</param>
 public static Resource CreateResource(global::System.Int32 key)
 {
     Resource resource = new Resource();
     resource.Key = key;
     return resource;
 }