public TabRepositoryReader(XDocument xml)
        {
            this.xml = xml;
            cache    = new LazyMappedIdentifierCollection <IAttributeGroupDefinition>();

            //The "Generic Properties" group should always exist, so we'll create it in the ctor
            genericGroupId = this.ResolveIdentifier("Generic Properties");
            cache.Add(genericGroupId, new Lazy <IAttributeGroupDefinition>(() =>
            {
                return(new AttributeGroupDefinition
                {
                    Id = genericGroupId,
                    Name = "Generic Properties",
                    Alias = "Generic",
                });
            }));
        }
 public EntityCollection()
 {
     col = new LazyMappedIdentifierCollection <T>();
 }
示例#3
0
 public EntityGraph()
 {
     collection = new LazyMappedIdentifierCollection <T>();
 }
 public PropertyRepositoryReader(XDocument xml, DataTypeRepositoryReader dataTypeRepo)
 {
     this.xml          = xml;
     this.dataTypeRepo = dataTypeRepo;
     this.cache        = new LazyMappedIdentifierCollection <IAttributeDefinition>();
 }