87 references to SchemaDataModelOption
System.Data.Entity (87)
System\Data\EntityModel\SchemaObjectModel\EntityContainer.cs (3)
48if(Schema.DataModel == SchemaDataModelOption.EntityDataModel) 163else if (Schema.DataModel == SchemaDataModelOption.EntityDataModel) 302if (entitySet != null && Schema.DataModel == SchemaDataModelOption.ProviderDataModel)
System\Data\EntityModel\SchemaObjectModel\EntityContainerEntitySet.cs (6)
88else if (Schema.DataModel == SchemaDataModelOption.ProviderDataModel) 96else if (Schema.DataModel == SchemaDataModelOption.EntityDataModel) 125if (Schema.DataModel == SchemaDataModelOption.ProviderDataModel) 152if (Schema.DataModel == SchemaDataModelOption.ProviderDataModel) 184Debug.Assert(Schema.DataModel == SchemaDataModelOption.ProviderDataModel, "We shouldn't see this attribute unless we are parsing ssdl"); 196Debug.Assert(Schema.DataModel == SchemaDataModelOption.ProviderDataModel, "We shouldn't see this attribute unless we are parsing ssdl");
System\Data\EntityModel\SchemaObjectModel\EntityContainerRelationshipSetEnd.cs (1)
84if (Schema.DataModel == SchemaDataModelOption.ProviderDataModel)
System\Data\EntityModel\SchemaObjectModel\EntityKeyElement.cs (2)
136if (Schema.DataModel == SchemaDataModelOption.EntityDataModel) 149Debug.Assert(SchemaDataModelOption.ProviderDataModel == Schema.DataModel, "Invalid DataModel encountered");
System\Data\EntityModel\SchemaObjectModel\FacetEnabledSchemaElement.cs (2)
107if (Schema.DataModel == SchemaDataModelOption.ProviderManifestModel && _typeUsageBuilder.HasUserDefinedFacets) 109bool isInProviderManifest = Schema.DataModel == SchemaDataModelOption.ProviderManifestModel;
System\Data\EntityModel\SchemaObjectModel\Function.cs (5)
322else if (Schema.DataModel == SchemaDataModelOption.EntityDataModel) 399Debug.Assert(Schema.DataModel != SchemaDataModelOption.ProviderManifestModel, "ProviderManifest cannot have ReturnType as an attribute"); 450if (Schema.DataModel != SchemaDataModelOption.EntityDataModel) 508if (Schema.DataModel == SchemaDataModelOption.ProviderDataModel) 607Debug.Assert(Schema.DataModel == SchemaDataModelOption.ProviderDataModel, "We shouldn't see this attribute unless we are parsing ssdl");
System\Data\EntityModel\SchemaObjectModel\FunctionImportElement.cs (1)
27if (Schema.DataModel == SchemaDataModelOption.EntityDataModel)
System\Data\EntityModel\SchemaObjectModel\ItemType.cs (4)
38if (Schema.DataModel == SchemaDataModelOption.EntityDataModel) 93else if (CanHandleAttribute(reader, XmlConstants.OpenType) && Schema.DataModel == SchemaDataModelOption.EntityDataModel) 204else if (CanHandleElement(reader, XmlConstants.ValueAnnotation) && Schema.DataModel == SchemaDataModelOption.EntityDataModel) 210else if (CanHandleElement(reader, XmlConstants.TypeAnnotation) && Schema.DataModel == SchemaDataModelOption.EntityDataModel)
System\Data\EntityModel\SchemaObjectModel\Parameter.cs (5)
292else if (Schema.DataModel == SchemaDataModelOption.EntityDataModel) 371if (Schema.DataModel != SchemaDataModelOption.EntityDataModel) 373Debug.Assert(Schema.DataModel == SchemaDataModelOption.ProviderDataModel || 374Schema.DataModel == SchemaDataModelOption.ProviderManifestModel, "Unexpected data model"); 391if (Schema.DataModel == SchemaDataModelOption.ProviderManifestModel)
System\Data\EntityModel\SchemaObjectModel\PrimitiveSchema.cs (1)
39if (schemaManager.DataModel == SchemaDataModelOption.EntityDataModel &&
System\Data\EntityModel\SchemaObjectModel\Property.cs (1)
47else if (Schema.DataModel == SchemaDataModelOption.EntityDataModel)
System\Data\EntityModel\SchemaObjectModel\ReferentialConstraint.cs (2)
148if (dependentRoleEnd.Multiplicity == RelationshipMultiplicity.One && Schema.DataModel == SchemaDataModelOption.ProviderDataModel) 159(Schema.DataModel == SchemaDataModelOption.EntityDataModel))
System\Data\EntityModel\SchemaObjectModel\Relationship.cs (4)
38if (Schema.DataModel == SchemaDataModelOption.EntityDataModel) 43else if (Schema.DataModel == SchemaDataModelOption.ProviderDataModel) 132if (this.Schema.DataModel == SchemaDataModelOption.ProviderDataModel) 214if (this.Schema.DataModel == SchemaDataModelOption.EntityDataModel && this.Schema.SchemaVersion >= XmlConstants.EdmVersionForV2)
System\Data\EntityModel\SchemaObjectModel\ReturnType.cs (5)
302if (Schema.DataModel != SchemaDataModelOption.EntityDataModel) 304Debug.Assert(Schema.DataModel == SchemaDataModelOption.ProviderDataModel || 305Schema.DataModel == SchemaDataModelOption.ProviderManifestModel, "Unexpected data model"); 307if (Schema.DataModel == SchemaDataModelOption.ProviderManifestModel) 330Debug.Assert(Schema.DataModel == SchemaDataModelOption.ProviderDataModel, "Unexpected data model");
System\Data\EntityModel\SchemaObjectModel\RowTypeElement.cs (2)
106if (Schema.DataModel == SchemaDataModelOption.EntityDataModel) 112Debug.Assert(Schema.DataModel == SchemaDataModelOption.ProviderDataModel, "Only DataModel == SchemaDataModelOption.ProviderDataModel is expected");
System\Data\EntityModel\SchemaObjectModel\Schema.cs (19)
176if (DataModel == SchemaDataModelOption.EntityDataModel) 196else if (DataModel == SchemaDataModelOption.ProviderDataModel) 648if (DataModel == SchemaDataModelOption.EntityDataModel) 679if (DataModel == SchemaDataModelOption.EntityDataModel || 680DataModel == SchemaDataModelOption.ProviderDataModel) 687else if (DataModel == SchemaDataModelOption.ProviderDataModel) 698Debug.Assert(DataModel == SchemaDataModelOption.ProviderManifestModel, "Did you add a new option?"); 876else if (this.DataModel != SchemaDataModelOption.EntityDataModel && type.Schema != this && type.Schema != this.SchemaManager.PrimitiveSchema) 907internal SchemaDataModelOption DataModel 1168string space = DataModel == SchemaDataModelOption.EntityDataModel ? "Conceptual" : "Storage"; 1202private static Memoizer<SchemaDataModelOption, XmlSchemaSet> _cachedSchemaSets = 1203new Memoizer<SchemaDataModelOption, XmlSchemaSet>(ComputeSchemaSet, EqualityComparer<SchemaDataModelOption>.Default); 1205internal static List<string> GetPrimarySchemaNamespaces(SchemaDataModelOption dataModel) 1208if (dataModel == SchemaDataModelOption.EntityDataModel) 1215else if (dataModel == SchemaDataModelOption.ProviderDataModel) 1223Debug.Assert(dataModel == SchemaDataModelOption.ProviderManifestModel, "Unknown SchemaDataModelOption did you add one?"); 1229internal static XmlSchemaSet GetSchemaSet(SchemaDataModelOption dataModel) 1234private static XmlSchemaSet ComputeSchemaSet(SchemaDataModelOption dataModel)
System\Data\EntityModel\SchemaObjectModel\SchemaComplexType.cs (1)
27if (Schema.DataModel == SchemaDataModelOption.EntityDataModel)
System\Data\EntityModel\SchemaObjectModel\SchemaEnumType.cs (1)
52if (Schema.DataModel == SchemaDataModelOption.EntityDataModel)
System\Data\EntityModel\SchemaObjectModel\SchemaManager.cs (7)
50private readonly SchemaDataModelOption _dataModel; 57private SchemaManager(SchemaDataModelOption dataModel, AttributeValueNotification providerNotification, AttributeValueNotification providerManifestTokenNotification, ProviderManifestNeeded providerManifestNeeded) 77new string[] { location }, SchemaDataModelOption.ProviderManifestModel, 97IEnumerable<string> sourceFilePaths, SchemaDataModelOption dataModel, 111IEnumerable<string> sourceFilePaths, SchemaDataModelOption dataModel, 299if (_namespaceLookUpTable.Count == 0 && schema.DataModel != SchemaDataModelOption.ProviderManifestModel) 416internal SchemaDataModelOption DataModel { get { return _dataModel; } }
System\Data\EntityModel\SchemaObjectModel\StructuredType.cs (1)
218if (this.Schema.DataModel != SchemaDataModelOption.ProviderDataModel &&
System\Data\EntityModel\SchemaObjectModel\TypeUsageBuilder.cs (1)
505if (this._element.Schema.DataModel == SchemaDataModelOption.EntityDataModel
System\Data\EntityModel\SchemaObjectModel\Utils.cs (5)
46internal static void ExtractNamespaceAndName(SchemaDataModelOption dataModel, string qualifiedTypeName, out string namespaceName, out string name) 53internal static string ExtractTypeName(SchemaDataModelOption dataModel, string qualifiedTypeName) 145if (schema.DataModel == SchemaDataModelOption.EntityDataModel) 188if (schema.DataModel == SchemaDataModelOption.EntityDataModel && 196Debug.Assert(!(schema.DataModel == SchemaDataModelOption.EntityDataModel && name.IndexOf('.') >= 0),
System\Data\Metadata\Converter.cs (5)
238element.Schema.DataModel == Som.SchemaDataModelOption.ProviderManifestModel, 719if (scalarType != null && somProperty.Schema.DataModel != Som.SchemaDataModelOption.EntityDataModel) 871bool areConvertingForProviderManifest = somFunction.Schema.DataModel == Som.SchemaDataModelOption.ProviderManifestModel; 1158else if (somParameter != null && somParameter.HasUserDefinedFacets && somFunction.Schema.DataModel == System.Data.EntityModel.SchemaObjectModel.SchemaDataModelOption.ProviderDataModel) 1179Debug.Assert(somFunction.Schema.DataModel == Som.SchemaDataModelOption.EntityDataModel, "Enums live only in CSpace");
System\Data\Metadata\EdmItemCollection.cs (2)
165IList<EdmSchemaError> errors = LoadItems(xmlReaders, filePaths, SchemaDataModelOption.EntityDataModel, 271SchemaDataModelOption dataModelOption,
System\Data\Metadata\StoreItemCollection.Loader.cs (1)
79SchemaDataModelOption.ProviderDataModel,