コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Authors EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAuthors(Author author)
 {
     base.AddObject("Authors", author);
 }
コード例 #2
0
 /// <summary>
 /// Create a new Author object.
 /// </summary>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="blogId">Initial value of the BlogId property.</param>
 /// <param name="isOwner">Initial value of the IsOwner property.</param>
 public static Author CreateAuthor(global::System.Guid userId, global::System.Guid blogId, global::System.Boolean isOwner)
 {
     Author author = new Author();
     author.UserId = userId;
     author.BlogId = blogId;
     author.IsOwner = isOwner;
     return author;
 }