/// <summary>
 /// Create a new PersonLinkedToGroup object.
 /// </summary>
 /// <param name="personId">Initial value of the PersonId property.</param>
 /// <param name="groupId">Initial value of the GroupId property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 public static PersonLinkedToGroup CreatePersonLinkedToGroup(global::System.Int32 personId, global::System.Int32 groupId, global::System.String description)
 {
     PersonLinkedToGroup personLinkedToGroup = new PersonLinkedToGroup();
     personLinkedToGroup.PersonId = personId;
     personLinkedToGroup.GroupId = groupId;
     personLinkedToGroup.Description = description;
     return personLinkedToGroup;
 }
 private static void addNewElder(oikonomosEntities context, int groupId, int overseeingElderId)
 {
     var newOverseeingElder = new PersonLinkedToGroup
     {
         GroupId = groupId,
         PersonId = overseeingElderId,
         Description = CacheNames.OverseeingElder
     };
     context.PersonLinkedToGroups.AddObject(newOverseeingElder);
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the PersonLinkedToGroups EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPersonLinkedToGroups(PersonLinkedToGroup personLinkedToGroup)
 {
     base.AddObject("PersonLinkedToGroups", personLinkedToGroup);
 }