public void Load() {
            short entityIndex = 0;
            foreach (var element in _elements) {
                var entity = new EntityConfigurationLoader(_process).Read(element, entityIndex);

                GuardAgainstFieldOverlap(entity);

                _process.Entities.Add(entity);
                if (_process.MasterEntity == null)
                    _process.MasterEntity = entity;

                entityIndex++;
            }
        }
Esempio n. 2
0
        public void Load()
        {
            short entityIndex = 0;

            foreach (var element in _elements)
            {
                var entity = new EntityConfigurationLoader(_process).Read(element, entityIndex);

                GuardAgainstFieldOverlap(entity);

                _process.Entities.Add(entity);
                if (_process.MasterEntity == null)
                {
                    _process.MasterEntity = entity;
                }

                entityIndex++;
            }
        }