/// <summary> /// Deprecated Method for adding a new object to the RechargeRecords EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToRechargeRecords(RechargeRecord rechargeRecord) { base.AddObject("RechargeRecords", rechargeRecord); }
/// <summary> /// Create a new RechargeRecord object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="coins">Initial value of the Coins property.</param> /// <param name="rechargeTime">Initial value of the RechargeTime property.</param> public static RechargeRecord CreateRechargeRecord(global::System.Int32 id, global::System.Guid userId, global::System.Int32 coins, global::System.DateTime rechargeTime) { RechargeRecord rechargeRecord = new RechargeRecord(); rechargeRecord.Id = id; rechargeRecord.UserId = userId; rechargeRecord.Coins = coins; rechargeRecord.RechargeTime = rechargeTime; return rechargeRecord; }