public CardViewModel(WorkCards card) { this.CardId = card.CardId; this.Duration = card.Duration; this.LogComment = card.LogComment; this.start = card.StartTime; }
/// <summary> /// Deprecated Method for adding a new object to the WorkCards EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToWorkCards(WorkCards workCards) { base.AddObject("WorkCards", workCards); }
/// <summary> /// Create a new WorkCards object. /// </summary> /// <param name="cardId">Initial value of the CardId property.</param> /// <param name="taskId">Initial value of the TaskId property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="startTime">Initial value of the StartTime property.</param> /// <param name="duration">Initial value of the Duration property.</param> /// <param name="logComment">Initial value of the LogComment property.</param> public static WorkCards CreateWorkCards(global::System.Guid cardId, global::System.Guid taskId, global::System.Guid userId, global::System.DateTime startTime, global::System.Int32 duration, global::System.String logComment) { WorkCards workCards = new WorkCards(); workCards.CardId = cardId; workCards.TaskId = taskId; workCards.UserId = userId; workCards.StartTime = startTime; workCards.Duration = duration; workCards.LogComment = logComment; return workCards; }