public int Update <T>(System.Collections.IDictionary di, QueryInfo <T> info) { bool hasId = false; Type type = typeof(T); string primaryKey = GetPrimaryKey(type); foreach (string key in info.Parameters.Keys) { if ((String.Compare(key, primaryKey, true) == 0)) { hasId = true; } } string update = info.GetSQLPartialUpdate(di); CheckNoParams(update, info.Parameters); return(Dao.Execute(update, info.Parameters)); }