Exemplo n.º 1
0
 // ========================================
 // constructor
 // ========================================
 public IListWrapper(IEntityContainer container, object owner, IList <T> real)
 {
     _container = container;
     _owner     = owner;
     _entity    = container.AsEntity(owner);
     _real      = real;
 }
Exemplo n.º 2
0
 // ========================================
 // constructor
 // ========================================
 public IDictionaryWrapper(IEntityContainer container, object owner, IDictionary <TKey, TValue> real)
 {
     _container = container;
     _owner     = owner;
     _entity    = container.AsEntity(owner);
     _real      = real;
 }
Exemplo n.º 3
0
        // ========================================
        // constructor
        // ========================================
        public CollectionWrapper(IEntityContainer container, object owner, Collection <T> real)
        {
            _container = container;
            _owner     = owner;
            _entity    = container.AsEntity(owner);
            _real      = real;

            _inited = false;
            foreach (var item in _real)
            {
                Add(item);
            }
            _inited = true;
        }