1 //---------------------------------------------------------------------
2 // <copyright file="Property.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
7 // @backupOwner Microsoft
8 //---------------------------------------------------------------------
11 using System.Collections;
12 using System.Collections.Generic;
13 using System.Collections.Specialized;
14 using System.Diagnostics;
17 using System.Data.Metadata.Edm;
18 using System.Reflection;
20 using System.Globalization;
22 namespace System.Data.EntityModel.SchemaObjectModel
25 internal abstract class Property : SchemaElement
28 /// Creates a Property object
30 /// <param name="parentElement">The parent element</param>
31 internal Property(StructuredType parentElement)
37 /// Gets the Type of the property
39 public abstract SchemaType Type { get;}
41 protected override bool HandleElement(XmlReader reader)
43 if (base.HandleElement(reader))
47 else if (Schema.DataModel == SchemaDataModelOption.EntityDataModel)
49 if (CanHandleElement(reader, XmlConstants.ValueAnnotation))
51 // EF does not support this EDM 3.0 element, so ignore it.
55 else if (CanHandleElement(reader, XmlConstants.TypeAnnotation))
57 // EF does not support this EDM 3.0 element, so ignore it.