Exemple #1
0
        public EntityDefinition(string id, string name, string @namespace, string description,
                                WXMLModel model, EntityDefinition baseEntity, EntityBehaviuor behaviour)
        {
            _id                     = id;
            _name                   = name;
            _description            = description;
            _sourceFragments        = new List <SourceFragmentRefDefinition>();
            _properties             = new List <PropertyDefinition>();
            _suppressedProperties   = new List <string>();
            _model                  = model;
            EntitySpecificNamespace = @namespace;
            _baseEntity             = baseEntity;
            Behaviour               = behaviour;

            if (model != null && !model.GetEntities().Any(item => item.Identifier == id))
            {
                model.AddEntity(this);
            }

            Interfaces = new Dictionary <string, TypeDefinition>();
        }