Ejemplo n.º 1
0
 /// <summary>
 /// 建立新 vwPowerMeter1HourLog 物件。
 /// </summary>
 /// <param name="eRID">ERID 屬性的初始值。</param>
 /// <param name="eRName">ERName 屬性的初始值。</param>
 /// <param name="flowID">FlowID 屬性的初始值。</param>
 /// <param name="timestamp">Timestamp 屬性的初始值。</param>
 /// <param name="waterAlarm_LastYearDetail">WaterAlarm_LastYearDetail 屬性的初始值。</param>
 /// <param name="powerAlarm_LastYearDetail">PowerAlarm_LastYearDetail 屬性的初始值。</param>
 /// <param name="powerAlarm_YesterdayDetail">PowerAlarm_YesterdayDetail 屬性的初始值。</param>
 /// <param name="powerAlarm_LastHourDetail">PowerAlarm_LastHourDetail 屬性的初始值。</param>
 public static vwPowerMeter1HourLog CreatevwPowerMeter1HourLog(global::System.Int32 eRID, global::System.String eRName, global::System.Int64 flowID, global::System.DateTime timestamp, global::System.String waterAlarm_LastYearDetail, global::System.String powerAlarm_LastYearDetail, global::System.String powerAlarm_YesterdayDetail, global::System.String powerAlarm_LastHourDetail)
 {
     vwPowerMeter1HourLog vwPowerMeter1HourLog = new vwPowerMeter1HourLog();
     vwPowerMeter1HourLog.ERID = eRID;
     vwPowerMeter1HourLog.ERName = eRName;
     vwPowerMeter1HourLog.FlowID = flowID;
     vwPowerMeter1HourLog.Timestamp = timestamp;
     vwPowerMeter1HourLog.WaterAlarm_LastYearDetail = waterAlarm_LastYearDetail;
     vwPowerMeter1HourLog.PowerAlarm_LastYearDetail = powerAlarm_LastYearDetail;
     vwPowerMeter1HourLog.PowerAlarm_YesterdayDetail = powerAlarm_YesterdayDetail;
     vwPowerMeter1HourLog.PowerAlarm_LastHourDetail = powerAlarm_LastHourDetail;
     return vwPowerMeter1HourLog;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 將新物件加入 vwPowerMeter1HourLog EntitySet 的方法已被取代。請考慮改為使用關聯的 ObjectSet&lt;T&gt; 屬性的 .Add 方法。
 /// </summary>
 public void AddTovwPowerMeter1HourLog(vwPowerMeter1HourLog vwPowerMeter1HourLog)
 {
     base.AddObject("vwPowerMeter1HourLog", vwPowerMeter1HourLog);
 }