//string guid, string elementSet?,string quantity?,string parameterValue,string creation //根据task的计算结果创建outputParameter表项 public void Create(string taskGuid, string compositionGuid, string compositionModelGuid, string elementSet, string quantity, string parameterValue, DateTime creation) { using (OOCEntities db = new OOCEntities()) { OutputParameter outputParameter = new OutputParameter(){ guid = GuidUtil.newGuid(), taskGuid = taskGuid, compositionGuid = compositionGuid, compositionModelGuid = compositionModelGuid, elementSet = elementSet, quantity = quantity, parameterValue = parameterValue, creation = creation }; db.OutputParameter.AddObject(outputParameter); db.SaveChanges(); } }
/// <summary> /// Create a new OutputParameter object. /// </summary> /// <param name="guid">Initial value of the guid property.</param> /// <param name="taskGuid">Initial value of the taskGuid property.</param> /// <param name="compositionGuid">Initial value of the compositionGuid property.</param> /// <param name="compositionModelGuid">Initial value of the compositionModelGuid property.</param> /// <param name="elementSet">Initial value of the elementSet property.</param> /// <param name="quantity">Initial value of the quantity property.</param> /// <param name="parameterValue">Initial value of the parameterValue property.</param> /// <param name="creation">Initial value of the creation property.</param> public static OutputParameter CreateOutputParameter(global::System.String guid, global::System.String taskGuid, global::System.String compositionGuid, global::System.String compositionModelGuid, global::System.String elementSet, global::System.String quantity, global::System.String parameterValue, global::System.DateTime creation) { OutputParameter outputParameter = new OutputParameter(); outputParameter.guid = guid; outputParameter.taskGuid = taskGuid; outputParameter.compositionGuid = compositionGuid; outputParameter.compositionModelGuid = compositionModelGuid; outputParameter.elementSet = elementSet; outputParameter.quantity = quantity; outputParameter.parameterValue = parameterValue; outputParameter.creation = creation; return outputParameter; }
/// <summary> /// Deprecated Method for adding a new object to the OutputParameter EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOutputParameter(OutputParameter outputParameter) { base.AddObject("OutputParameter", outputParameter); }