コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the HeroAttributes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToHeroAttributes(HeroAttributes heroAttributes)
 {
     base.AddObject("HeroAttributes", heroAttributes);
 }
コード例 #2
0
 /// <summary>
 /// Create a new HeroAttributes object.
 /// </summary>
 /// <param name="heroId">Initial value of the HeroId property.</param>
 /// <param name="life">Initial value of the Life property.</param>
 /// <param name="strength">Initial value of the Strength property.</param>
 /// <param name="agility">Initial value of the Agility property.</param>
 /// <param name="intelligence">Initial value of the Intelligence property.</param>
 /// <param name="wisdom">Initial value of the Wisdom property.</param>
 /// <param name="charm">Initial value of the Charm property.</param>
 public static HeroAttributes CreateHeroAttributes(global::System.Int32 heroId, global::System.Int32 life, global::System.Int32 strength, global::System.Int32 agility, global::System.Int32 intelligence, global::System.Int32 wisdom, global::System.Int32 charm)
 {
     HeroAttributes heroAttributes = new HeroAttributes();
     heroAttributes.HeroId = heroId;
     heroAttributes.Life = life;
     heroAttributes.Strength = strength;
     heroAttributes.Agility = agility;
     heroAttributes.Intelligence = intelligence;
     heroAttributes.Wisdom = wisdom;
     heroAttributes.Charm = charm;
     return heroAttributes;
 }