Esempio n. 1
0
		internal void Initialize(IQueryAdapter dbClient)
		{
			dbClient.setQuery("SELECT * FROM pinatas_items");
			this.Pinatas = new Dictionary<uint, PinataItem>();
			this.Table = dbClient.getTable();
			foreach (DataRow dataRow in this.Table.Rows)
			{
				PinataItem value = new PinataItem(dataRow);
				this.Pinatas.Add(uint.Parse(dataRow["item_baseid"].ToString()), value);
			}
		}
Esempio n. 2
0
 internal void Initialize(IQueryAdapter dbClient)
 {
     dbClient.setQuery("SELECT * FROM pinatas_items");
     this.Pinatas = new Dictionary <uint, PinataItem>();
     this.Table   = dbClient.getTable();
     foreach (DataRow dataRow in this.Table.Rows)
     {
         PinataItem value = new PinataItem(dataRow);
         this.Pinatas.Add(uint.Parse(dataRow["item_baseid"].ToString()), value);
     }
 }