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