/// <summary>
        /// Create a new AreaLink object.
        /// </summary>
        /// <param name="identityId">Initial value of the IdentityId property.</param>
        /// <param name="areaId">Initial value of the AreaId property.</param>
        public static AreaLink CreateAreaLink(global::System.Int32 identityId, global::System.Int32 areaId)
        {
            AreaLink areaLink = new AreaLink();

            areaLink.IdentityId = identityId;
            areaLink.AreaId     = areaId;
            return(areaLink);
        }
    void LinkAreas(int AreaId, int IdentityId)
    {
        rapidInfoModel.AreaLink a = new rapidInfoModel.AreaLink();

        a.AreaId     = AreaId;
        a.IdentityId = IdentityId;
        a.Save();
    }
 /// <summary>
 /// Deprecated Method for adding a new object to the AreaLinks EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAreaLinks(AreaLink areaLink)
 {
     base.AddObject("AreaLinks", areaLink);
 }