Exemple #1
0
 /// <summary>
 /// Create a new Author object.
 /// </summary>
 /// <param name="authorID">Initial value of the AuthorID property.</param>
 /// <param name="lastName">Initial value of the LastName property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 public static Author CreateAuthor(global::System.Int32 authorID, global::System.String lastName, global::System.String firstName)
 {
     Author author = new Author();
     author.AuthorID = authorID;
     author.LastName = lastName;
     author.FirstName = firstName;
     return author;
 }
Exemple #2
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);
 }