Exemplo n.º 1
0
        /// <summary>
        /// Create a new DataLog object.
        /// </summary>
        /// <param name="readingDate">Initial value of the ReadingDate property.</param>
        /// <param name="sternAngle">Initial value of the SternAngle property.</param>
        /// <param name="sternWaterSideDraft">Initial value of the SternWaterSideDraft property.</param>
        /// <param name="sternDockSideDraft">Initial value of the SternDockSideDraft property.</param>
        /// <param name="bowAngle">Initial value of the BowAngle property.</param>
        /// <param name="bowWaterSideDraft">Initial value of the BowWaterSideDraft property.</param>
        /// <param name="bowDockSideDraft">Initial value of the BowDockSideDraft property.</param>
        /// <param name="dayNumber">Initial value of the DayNumber property.</param>
        public static DataLog CreateDataLog(global::System.DateTime readingDate, global::System.Double sternAngle, global::System.Double sternWaterSideDraft, global::System.Double sternDockSideDraft, global::System.Double bowAngle, global::System.Double bowWaterSideDraft, global::System.Double bowDockSideDraft, global::System.Int32 dayNumber)
        {
            DataLog dataLog = new DataLog();

            dataLog.ReadingDate         = readingDate;
            dataLog.SternAngle          = sternAngle;
            dataLog.SternWaterSideDraft = sternWaterSideDraft;
            dataLog.SternDockSideDraft  = sternDockSideDraft;
            dataLog.BowAngle            = bowAngle;
            dataLog.BowWaterSideDraft   = bowWaterSideDraft;
            dataLog.BowDockSideDraft    = bowDockSideDraft;
            dataLog.DayNumber           = dayNumber;
            return(dataLog);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the DataLogs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDataLogs(DataLog dataLog)
 {
     base.AddObject("DataLogs", dataLog);
 }