/// <summary> /// 將新物件加入 tblSectionLedOneTimePlan EntitySet 的方法已被取代。請考慮改為使用關聯的 ObjectSet<T> 屬性的 .Add 方法。 /// </summary> public void AddTotblSectionLedOneTimePlan(tblSectionLedOneTimePlan tblSectionLedOneTimePlan) { base.AddObject("tblSectionLedOneTimePlan", tblSectionLedOneTimePlan); }
/// <summary> /// 建立新 tblSectionLedOneTimePlan 物件。 /// </summary> /// <param name="projectID">ProjectID 屬性的初始值。</param> /// <param name="groupID">GroupID 屬性的初始值。</param> /// <param name="sectionID">SectionID 屬性的初始值。</param> /// <param name="planID">PlanID 屬性的初始值。</param> /// <param name="w">W 屬性的初始值。</param> /// <param name="r">R 屬性的初始值。</param> /// <param name="g">G 屬性的初始值。</param> /// <param name="b">B 屬性的初始值。</param> /// <param name="beginTime">BeginTime 屬性的初始值。</param> /// <param name="durationMin">DurationMin 屬性的初始值。</param> public static tblSectionLedOneTimePlan CreatetblSectionLedOneTimePlan(global::System.Int32 projectID, global::System.Int32 groupID, global::System.Int32 sectionID, global::System.Int32 planID, global::System.Int32 w, global::System.Int32 r, global::System.Int32 g, global::System.Int32 b, global::System.DateTime beginTime, global::System.Int32 durationMin) { tblSectionLedOneTimePlan tblSectionLedOneTimePlan = new tblSectionLedOneTimePlan(); tblSectionLedOneTimePlan.ProjectID = projectID; tblSectionLedOneTimePlan.GroupID = groupID; tblSectionLedOneTimePlan.SectionID = sectionID; tblSectionLedOneTimePlan.PlanID = planID; tblSectionLedOneTimePlan.W = w; tblSectionLedOneTimePlan.R = r; tblSectionLedOneTimePlan.G = g; tblSectionLedOneTimePlan.B = b; tblSectionLedOneTimePlan.BeginTime = beginTime; tblSectionLedOneTimePlan.DurationMin = durationMin; return tblSectionLedOneTimePlan; }