Ejemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Securities EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSecurities(Security security)
 {
     base.AddObject("Securities", security);
 }
Ejemplo n.º 2
0
 /// <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;
 }