Пример #1
0
 /// <summary>
 /// Create a new Tag object.
 /// </summary>
 /// <param name="id">Initial value of Id.</param>
 /// <param name="name">Initial value of Name.</param>
 public static Tag CreateTag(int id, string name)
 {
     Tag tag = new Tag();
     tag.Id = id;
     tag.Name = name;
     return tag;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Tags EntitySet.
 /// </summary>
 public void AddToTags(Tag tag)
 {
     base.AddObject("Tags", tag);
 }