コード例 #1
0
 /// <summary>
 /// Create a new Job object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="cPUs">Initial value of the CPUs property.</param>
 /// <param name="timeExpected">Initial value of the TimeExpected property.</param>
 /// <param name="timeTaken">Initial value of the TimeTaken property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="state">Initial value of the State property.</param>
 /// <param name="owner">Initial value of the Owner property.</param>
 /// <param name="submitTime">Initial value of the SubmitTime property.</param>
 /// <param name="jobType">Initial value of the JobType property.</param>
 public static Job CreateJob(global::System.Int32 id, global::System.String cPUs, global::System.String timeExpected, global::System.String timeTaken, global::System.String description, global::System.String state, global::System.String owner, global::System.DateTime submitTime, global::System.String jobType)
 {
     Job job = new Job();
     job.Id = id;
     job.CPUs = cPUs;
     job.TimeExpected = timeExpected;
     job.TimeTaken = timeTaken;
     job.Description = description;
     job.State = state;
     job.Owner = owner;
     job.SubmitTime = submitTime;
     job.JobType = jobType;
     return job;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Jobs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToJobs(Job job)
 {
     base.AddObject("Jobs", job);
 }