Exemplo n.º 1
0
        private ScheduleItemUser projectScheduleUser(oxite_Conferences_ScheduleItemUserRelationship scheduleItemUserRelationship)
        {
            var result = new ScheduleItemUser(scheduleItemUserRelationship.UserID,
                                              context.oxite_Users.Single(
                                                  u => u.UserID.Equals(scheduleItemUserRelationship.UserID)).Username);

            return(result);
        }
Exemplo n.º 2
0
        public void AddUserRelationship(ScheduleItemSmall scheduleItem, Guid userID)
        {
            if (scheduleItem == null || getUserRelationshipExists(scheduleItem, userID))
            {
                return;
            }

            var relationship = new oxite_Conferences_ScheduleItemUserRelationship()
            {
                ScheduleItemID = scheduleItem.ID,
                UserID         = userID
            };

            context.oxite_Conferences_ScheduleItemUserRelationships.InsertOnSubmit(relationship);
            context.SubmitChanges();
        }