Exemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ContentRepresentations EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToContentRepresentations(ContentRepresentation contentRepresentation)
 {
     base.AddObject("ContentRepresentations", contentRepresentation);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create a new ContentRepresentation object.
 /// </summary>
 /// <param name="contentRepresentationId">Initial value of the ContentRepresentationId property.</param>
 /// <param name="contentId">Initial value of the ContentId property.</param>
 /// <param name="rightsTypeId">Initial value of the RightsTypeId property.</param>
 /// <param name="representationShare">Initial value of the RepresentationShare property.</param>
 /// <param name="createdByUserId">Initial value of the CreatedByUserId property.</param>
 /// <param name="createdOn">Initial value of the CreatedOn property.</param>
 public static ContentRepresentation CreateContentRepresentation(global::System.Int32 contentRepresentationId, global::System.Int32 contentId, global::System.Int32 rightsTypeId, global::System.Decimal representationShare, global::System.Int32 createdByUserId, global::System.DateTime createdOn)
 {
     ContentRepresentation contentRepresentation = new ContentRepresentation();
     contentRepresentation.ContentRepresentationId = contentRepresentationId;
     contentRepresentation.ContentId = contentId;
     contentRepresentation.RightsTypeId = rightsTypeId;
     contentRepresentation.RepresentationShare = representationShare;
     contentRepresentation.CreatedByUserId = createdByUserId;
     contentRepresentation.CreatedOn = createdOn;
     return contentRepresentation;
 }