Esempio n. 1
0
        internal static CsdlEntityType EntityType(
            string name, 
            string baseName = null, 
            bool isAbstract = false,
            bool isOpen = false,
            bool hasStream = false,
            CsdlKey csdlKey = null,
            CsdlProperty[] properties = default(CsdlProperty[]),
            CsdlNavigationProperty[] navProps = default(CsdlNavigationProperty[]),
            CsdlDocumentation documentation = null,
            CsdlLocation location = null)
        {
            if (properties == null)
            {
                properties = new CsdlProperty[] { };
            }

            if (navProps == null)
            {
                navProps = new CsdlNavigationProperty[] { };
            }

            return new CsdlEntityType(
                name,
                baseName, 
                isAbstract,
                isOpen,
                hasStream,
                csdlKey, 
                properties, 
                navProps, 
                documentation, 
                location);
        }
        public CsdlEntityType(string name, string baseTypeName, bool isAbstract, bool isOpen, bool hasStream, CsdlKey key, IEnumerable <CsdlProperty> properties, IEnumerable <CsdlNavigationProperty> navigationProperties, CsdlDocumentation documentation, CsdlLocation location)
            : base(name, baseTypeName, isAbstract, isOpen, properties, documentation, location)
        {
            this.key       = key;
            this.hasStream = hasStream;

            this.navigationProperties = new List <CsdlNavigationProperty>(navigationProperties);
        }
Esempio n. 3
0
        public CsdlEntityType(string name, string baseTypeName, bool isAbstract, bool isOpen, bool hasStream, CsdlKey key, IEnumerable<CsdlProperty> properties, IEnumerable<CsdlNavigationProperty> navigationProperties, CsdlDocumentation documentation, CsdlLocation location)
            : base(name, baseTypeName, isAbstract, isOpen, properties, documentation, location)
        {
            this.key = key;
            this.hasStream = hasStream;

            this.navigationProperties = new List<CsdlNavigationProperty>(navigationProperties);
        }
Esempio n. 4
0
 public CsdlEntityType(string name, string baseTypeName, bool isAbstract, bool isOpen, bool hasStream, CsdlKey key, IEnumerable <CsdlProperty> structualProperties, IEnumerable <CsdlNavigationProperty> navigationProperties, CsdlLocation location)
     : base(name, baseTypeName, isAbstract, isOpen, structualProperties, navigationProperties, location)
 {
     this.key       = key;
     this.hasStream = hasStream;
 }