Inheritance: System.Data.Objects.DataClasses.EntityObject
Example #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Tag EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTag(Tag tag)
 {
     base.AddObject("Tag", tag);
 }
Example #2
0
 /// <summary>
 /// Create a new Tag object.
 /// </summary>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="contentId">Initial value of the ContentId property.</param>
 /// <param name="contentType">Initial value of the ContentType property.</param>
 /// <param name="date">Initial value of the Date property.</param>
 /// <param name="tagId">Initial value of the TagId property.</param>
 /// <param name="tagName">Initial value of the TagName property.</param>
 public static Tag CreateTag(global::System.Int32 userId, global::System.Int32 contentId, global::System.Byte contentType, global::System.DateTime date, global::System.Int32 tagId, global::System.String tagName)
 {
     Tag tag = new Tag();
     tag.UserId = userId;
     tag.ContentId = contentId;
     tag.ContentType = contentType;
     tag.Date = date;
     tag.TagId = tagId;
     tag.TagName = tagName;
     return tag;
 }