//public virtual hostUser Logon { get; set; } public virtual void RefreshCharacterStats(ISession sess) { bool bContains; //create default stats IList <sysBaseStatistic> allstats = sess.CreateCriteria(typeof(sysBaseStatistic)) .List <sysBaseStatistic>(); foreach (sysBaseStatistic s in allstats) { bContains = false; foreach (hostCharStat c in this.CharStats) { if (c.stat == s) { bContains = true; break; } } if (!bContains) { hostCharStat sv = new hostCharStat(s, this, s.defvalue); CharStats.Add(sv); } else { Debug.Print("Character:" + this.LongName + " has a stat for:" + s.LongName); } } }