70 references to DataModel
System.Data.Entity (70)
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\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\RelationshipEnd.cs (1)
134
Name = Utils.ExtractTypeName(Schema.
DataModel
, _unresolvedType);
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 (12)
151
List<string> expectedNamespaces = SomSchemaSetHelper.GetPrimarySchemaNamespaces(
DataModel
);
176
if (
DataModel
== SchemaDataModelOption.EntityDataModel)
196
else if (
DataModel
== SchemaDataModelOption.ProviderDataModel)
284
XmlSchemaSet schemaSet = SomSchemaSetHelper.GetSchemaSet(
DataModel
);
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?");
832
Utils.ExtractNamespaceAndName(
DataModel
, typeName, out actualQualification, out unqualifiedTypeName);
876
else if (this.
DataModel
!= SchemaDataModelOption.EntityDataModel && type.Schema != this && type.Schema != this.SchemaManager.PrimitiveSchema)
1168
string space =
DataModel
== SchemaDataModelOption.EntityDataModel ? "Conceptual" : "Storage";
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 (2)
297
Debug.Assert(schema.
DataModel
== _dataModel, "DataModel must match");
299
if (_namespaceLookUpTable.Count == 0 && schema.
DataModel
!= SchemaDataModelOption.ProviderManifestModel)
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 (3)
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");