コード例 #1
0
        /// <summary>
        /// Create a new Premiere object.
        /// </summary>
        /// <param name="premiereID">Initial value of the PremiereID property.</param>
        /// <param name="name">Initial value of the Name property.</param>
        /// <param name="price">Initial value of the Price property.</param>
        /// <param name="ticketCapacity">Initial value of the TicketCapacity property.</param>
        /// <param name="genreID">Initial value of the GenreID property.</param>
        public static Premiere CreatePremiere(global::System.Int32 premiereID, global::System.String name, global::System.Decimal price, global::System.Int32 ticketCapacity, global::System.Int32 genreID)
        {
            Premiere premiere = new Premiere();

            premiere.PremiereID     = premiereID;
            premiere.Name           = name;
            premiere.Price          = price;
            premiere.TicketCapacity = ticketCapacity;
            premiere.GenreID        = genreID;
            return(premiere);
        }
コード例 #2
0
 /// <summary>
 /// Create a new Premiere object.
 /// </summary>
 /// <param name="premiereID">Initial value of the PremiereID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="price">Initial value of the Price property.</param>
 /// <param name="ticketCapacity">Initial value of the TicketCapacity property.</param>
 /// <param name="genreID">Initial value of the GenreID property.</param>
 public static Premiere CreatePremiere(global::System.Int32 premiereID, global::System.String name, global::System.Decimal price, global::System.Int32 ticketCapacity, global::System.Int32 genreID)
 {
     Premiere premiere = new Premiere();
     premiere.PremiereID = premiereID;
     premiere.Name = name;
     premiere.Price = price;
     premiere.TicketCapacity = ticketCapacity;
     premiere.GenreID = genreID;
     return premiere;
 }
コード例 #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Premiere EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPremiere(Premiere premiere)
 {
     base.AddObject("Premiere", premiere);
 }
コード例 #4
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Premiere EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPremiere(Premiere premiere)
 {
     base.AddObject("Premiere", premiere);
 }