/// <summary>
 /// Create a new NextOfKin object.
 /// </summary>
 /// <param name="nextOfKinId">Initial value of the NextOfKinId property.</param>
 /// <param name="forename">Initial value of the Forename property.</param>
 /// <param name="surname">Initial value of the Surname property.</param>
 /// <param name="detailsId">Initial value of the DetailsId property.</param>
 public static NextOfKin CreateNextOfKin(global::System.Int32 nextOfKinId, global::System.String forename, global::System.String surname, global::System.Int32 detailsId)
 {
     NextOfKin nextOfKin = new NextOfKin();
     nextOfKin.NextOfKinId = nextOfKinId;
     nextOfKin.Forename = forename;
     nextOfKin.Surname = surname;
     nextOfKin.DetailsId = detailsId;
     return nextOfKin;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the NextOfKins EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToNextOfKins(NextOfKin nextOfKin)
 {
     base.AddObject("NextOfKins", nextOfKin);
 }