/// <summary> /// Deprecated Method for adding a new object to the Securities EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSecurities(Security security) { base.AddObject("Securities", security); }
/// <summary> /// Create a new Security object. /// </summary> /// <param name="personID">Initial value of the PersonID property.</param> /// <param name="randomNumber">Initial value of the RandomNumber property.</param> public static Security CreateSecurity(global::System.Int32 personID, global::System.Int32 randomNumber) { Security security = new Security(); security.PersonID = personID; security.RandomNumber = randomNumber; return security; }