internal Entity(EntityTypeCacheItem cache) { _values = new Dictionary<string, List<object>>(); _cache = cache; _readLine = false; if (_cache.HasMulitple) _filter = new Dictionary<string, List<long>>(); }
public EntityHelper(short inEntityID, bool inApplyToChild = false, Xy.Data.DataBase DB = null) { if (inEntityID <= 0) throw new Exception("Type ID is incorrect"); _db = DB; if (_db == null) _db = new Xy.Data.DataBase(); _cache = EntityTypeCache.GetInstance(inEntityID, _db); _applyToChild = inApplyToChild; _childQueryWhere = "[TypeID] = " + _cache.TypeInstance.ID + " and "; if (!_cache.TypeInstance.IsActive) throw new Exception("Type is not available"); }