/// <summary> /// Create a new PersonName object. /// </summary> /// <param name="nameId">Initial value of the NameId property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="sexOf">Initial value of the SexOf property.</param> /// <param name="surname">Initial value of the Surname property.</param> public static PersonName CreatePersonName(global::System.Guid nameId, global::System.String name, global::System.String sexOf, global::System.Boolean surname) { PersonName personName = new PersonName(); personName.NameId = nameId; personName.Name = name; personName.SexOf = sexOf; personName.Surname = surname; return personName; }
/// <summary> /// Deprecated Method for adding a new object to the PersonNames EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPersonNames(PersonName personName) { base.AddObject("PersonNames", personName); }
/// <summary> /// Create a new PersonName object. /// </summary> /// <param name="name">Initial value of the Name property.</param> /// <param name="sexOf">Initial value of the SexOf property.</param> /// <param name="surname">Initial value of the Surname property.</param> /// <param name="id">Initial value of the Id property.</param> public static PersonName CreatePersonName(global::System.String name, global::System.String sexOf, global::System.Boolean surname, global::System.Int64 id) { PersonName personName = new PersonName(); personName.Name = name; personName.SexOf = sexOf; personName.Surname = surname; personName.Id = id; return personName; }