示例#1
0
        /// <summary>
        /// Create a new Accident object.
        /// </summary>
        /// <param name="accidentId">Initial value of the AccidentId property.</param>
        /// <param name="description">Initial value of the Description property.</param>
        /// <param name="severity">Initial value of the Severity property.</param>
        /// <param name="workerId">Initial value of the WorkerId property.</param>
        public static Accident CreateAccident(global::System.Int32 accidentId, global::System.String description, global::System.Int32 severity, global::System.Int32 workerId)
        {
            Accident accident = new Accident();

            accident.AccidentId  = accidentId;
            accident.Description = description;
            accident.Severity    = severity;
            accident.WorkerId    = workerId;
            return(accident);
        }
示例#2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Accidents EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAccidents(Accident accident)
 {
     base.AddObject("Accidents", accident);
 }