internal ODataEntityPropertyMappingCache(ODataEntityPropertyMappingCollection mappings, IEdmModel model, int totalMappingCount) { this.mappings = mappings; this.model = model; this.totalMappingCount = totalMappingCount; this.mappingsForInheritedProperties = new List<EntityPropertyMappingAttribute>(); this.mappingsForDeclaredProperties = (mappings == null) ? new List<EntityPropertyMappingAttribute>() : new List<EntityPropertyMappingAttribute>(mappings); this.epmTargetTree = new Microsoft.Data.OData.Metadata.EpmTargetTree(); this.epmSourceTree = new Microsoft.Data.OData.Metadata.EpmSourceTree(this.epmTargetTree); }
internal ODataEntityPropertyMappingCache(ODataEntityPropertyMappingCollection mappings, IEdmModel model, int totalMappingCount) { this.mappings = mappings; this.model = model; this.totalMappingCount = totalMappingCount; this.mappingsForInheritedProperties = new List <EntityPropertyMappingAttribute>(); this.mappingsForDeclaredProperties = (mappings == null) ? new List <EntityPropertyMappingAttribute>() : new List <EntityPropertyMappingAttribute>(mappings); this.epmTargetTree = new Microsoft.Data.OData.Metadata.EpmTargetTree(); this.epmSourceTree = new Microsoft.Data.OData.Metadata.EpmSourceTree(this.epmTargetTree); }