예제 #1
0
파일: Entity.cs 프로젝트: BrookHuang/XYCMS
 internal Entity(EntityTypeCacheItem cache)
 {
     _values = new Dictionary<string, List<object>>();
     _cache = cache;
     _readLine = false;
     if (_cache.HasMulitple) _filter = new Dictionary<string, List<long>>();
 }
예제 #2
0
 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");
 }