/// <summary> /// Create a new Class object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="constitutionRollWeight">Initial value of the ConstitutionRollWeight property.</param> /// <param name="dexterityRollWeight">Initial value of the DexterityRollWeight property.</param> /// <param name="intelligenceRollWeight">Initial value of the IntelligenceRollWeight property.</param> /// <param name="luckRollWeight">Initial value of the LuckRollWeight property.</param> /// <param name="attunementRollWeight">Initial value of the AttunementRollWeight property.</param> /// <param name="strengthRollWeight">Initial value of the StrengthRollWeight property.</param> /// <param name="willpowerRollWeight">Initial value of the WillpowerRollWeight property.</param> public static Class CreateClass(global::System.Int32 id, global::System.String name, global::System.Double constitutionRollWeight, global::System.Double dexterityRollWeight, global::System.Double intelligenceRollWeight, global::System.Double luckRollWeight, global::System.Double attunementRollWeight, global::System.Double strengthRollWeight, global::System.Double willpowerRollWeight) { Class @class = new Class(); @class.Id = id; @class.Name = name; @class.ConstitutionRollWeight = constitutionRollWeight; @class.DexterityRollWeight = dexterityRollWeight; @class.IntelligenceRollWeight = intelligenceRollWeight; @class.LuckRollWeight = luckRollWeight; @class.AttunementRollWeight = attunementRollWeight; @class.StrengthRollWeight = strengthRollWeight; @class.WillpowerRollWeight = willpowerRollWeight; return @class; }
/// <summary> /// Deprecated Method for adding a new object to the Classes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToClasses(Class @class) { base.AddObject("Classes", @class); }