/// <summary> /// Deprecated Method for adding a new object to the VisitorCards EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToVisitorCards(VisitorCard visitorCard) { base.AddObject("VisitorCards", visitorCard); }
/// <summary> /// Create a new VisitorCard object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="userID">Initial value of the UserID property.</param> /// <param name="startTime">Initial value of the StartTime property.</param> /// <param name="endTime">Initial value of the EndTime property.</param> /// <param name="isAllowedAccess">Initial value of the IsAllowedAccess property.</param> public static VisitorCard CreateVisitorCard(global::System.Int32 id, global::System.Guid userID, global::System.DateTime startTime, global::System.DateTime endTime, global::System.Boolean isAllowedAccess) { VisitorCard visitorCard = new VisitorCard(); visitorCard.ID = id; visitorCard.UserID = userID; visitorCard.StartTime = startTime; visitorCard.EndTime = endTime; visitorCard.IsAllowedAccess = isAllowedAccess; return visitorCard; }