Пример #1
0
 /// <summary>
 /// 用于向 JobShifts EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToJobShifts(JobShift jobShift)
 {
     base.AddObject("JobShifts", jobShift);
 }
Пример #2
0
 /// <summary>
 /// 创建新的 JobShift 对象。
 /// </summary>
 /// <param name="id">Id 属性的初始值。</param>
 /// <param name="name">Name 属性的初始值。</param>
 /// <param name="startTime">StartTime 属性的初始值。</param>
 /// <param name="endTime">EndTime 属性的初始值。</param>
 /// <param name="ruleHours">RuleHours 属性的初始值。</param>
 /// <param name="ruleCount">RuleCount 属性的初始值。</param>
 public static JobShift CreateJobShift(global::System.String id, global::System.String name, global::System.TimeSpan startTime, global::System.TimeSpan endTime, global::System.Decimal ruleHours, global::System.Int32 ruleCount)
 {
     JobShift jobShift = new JobShift();
     jobShift.Id = id;
     jobShift.Name = name;
     jobShift.StartTime = startTime;
     jobShift.EndTime = endTime;
     jobShift.RuleHours = ruleHours;
     jobShift.RuleCount = ruleCount;
     return jobShift;
 }