7 writes to SchemaVersion
System.Data.Entity (7)
System\Data\EntityModel\SchemaObjectModel\Schema.cs (7)
180
SchemaVersion
= XmlConstants.EdmVersionForV1;
184
SchemaVersion
= XmlConstants.EdmVersionForV1_1;
188
SchemaVersion
= XmlConstants.EdmVersionForV2;
193
SchemaVersion
= XmlConstants.EdmVersionForV3;
200
SchemaVersion
= XmlConstants.StoreVersionForV1;
204
SchemaVersion
= XmlConstants.StoreVersionForV2;
209
SchemaVersion
= XmlConstants.StoreVersionForV3;
37 references to SchemaVersion
System.Data.Entity (37)
System\Data\EntityModel\SchemaObjectModel\EntityKeyElement.cs (2)
139
if ((primitivePropertyType.PrimitiveTypeKind == PrimitiveTypeKind.Binary && Schema.
SchemaVersion
< XmlConstants.EdmVersionForV2) ||
152
if ((primitivePropertyType.PrimitiveTypeKind == PrimitiveTypeKind.Binary && Schema.
SchemaVersion
< XmlConstants.StoreVersionForV2) ||
System\Data\EntityModel\SchemaObjectModel\FunctionImportElement.cs (6)
183
GetReturnTypeErrorMessage(Schema.
SchemaVersion
, this.Name)
195
if (Schema.
SchemaVersion
== XmlConstants.EdmVersionForV1_1)
202
if (Schema.
SchemaVersion
>= XmlConstants.EdmVersionForV2)
206
if (Schema.
SchemaVersion
>= XmlConstants.EdmVersionForV3)
290
if (Schema.
SchemaVersion
== XmlConstants.EdmVersionForV1)
294
else if (Schema.
SchemaVersion
== XmlConstants.EdmVersionForV1_1)
System\Data\EntityModel\SchemaObjectModel\ReferentialConstraint.cs (1)
91
bool v1Behavior = Schema.
SchemaVersion
<= XmlConstants.EdmVersionForV1_1;
System\Data\EntityModel\SchemaObjectModel\Relationship.cs (1)
214
if (this.Schema.DataModel == SchemaDataModelOption.EntityDataModel && this.Schema.
SchemaVersion
>= XmlConstants.EdmVersionForV2)
System\Data\EntityModel\SchemaObjectModel\ReturnType.cs (1)
348
if (Schema.
SchemaVersion
< XmlConstants.StoreVersionForV3)
System\Data\EntityModel\SchemaObjectModel\Schema.cs (11)
311
if ((this.
SchemaVersion
== XmlConstants.EdmVersionForV1) || (this.
SchemaVersion
== XmlConstants.EdmVersionForV1_1))
317
Debug.Assert(this.
SchemaVersion
>= XmlConstants.EdmVersionForV2 ||
SchemaVersion
== XmlConstants.UndefinedVersion, "Have you added a new Edm Version?");
326
if ((this.
SchemaVersion
>= XmlConstants.EdmVersionForV2) && (reader.NodeType == XmlNodeType.Attribute)
350
foreach (var schemaResource in XmlSchemaResource.GetMetadataSchemaResourceMap(this.
SchemaVersion
).Values)
373
double schemaVersion =
SchemaVersion
== XmlConstants.UndefinedVersion ? XmlConstants.SchemaVersionLatest :
SchemaVersion
;
379
if (
SchemaVersion
== XmlConstants.UndefinedVersion)
796
_schemaManager.EnsurePrimitiveSchemaIsLoaded(this.
SchemaVersion
);
1170
if (this.
SchemaVersion
>= XmlConstants.EdmVersionForV2 && this.SchemaManager.SchemaTypes.ContainsKey(function.FQName))
System\Data\EntityModel\SchemaObjectModel\SchemaElement.cs (3)
660
if (this._schema.
SchemaVersion
== XmlConstants.EdmVersionForV1 ||
661
this._schema.
SchemaVersion
== XmlConstants.EdmVersionForV1_1)
671
if (this._schema.
SchemaVersion
>= XmlConstants.EdmVersionForV2
System\Data\EntityModel\SchemaObjectModel\SchemaManager.cs (7)
165
var currentSchemaVersion = schema.
SchemaVersion
;
166
Debug.Assert(schemaCollection.All(s => s.
SchemaVersion
== currentSchemaVersion || s.
SchemaVersion
!= XmlConstants.UndefinedVersion));
276
if (schemaToBeAdded.
SchemaVersion
!= XmlConstants.UndefinedVersion && schemaCollection.Count() > 0)
278
if (schemaCollection.Any(s => s.
SchemaVersion
!= XmlConstants.UndefinedVersion && s.
SchemaVersion
!= schemaToBeAdded.
SchemaVersion
))
System\Data\EntityModel\SchemaObjectModel\StructuredProperty.cs (2)
212
Debug.Assert(Schema.
SchemaVersion
!= XmlConstants.EdmVersionForV1,
221
else if (Nullable && (this.Schema.
SchemaVersion
!= XmlConstants.EdmVersionForV1_1)
System\Data\Metadata\Converter.cs (3)
154
edmCollection.EdmVersion = somSchema.
SchemaVersion
;
164
storeCollection.StoreSchemaVersion = somSchema.
SchemaVersion
;
1318
if (somProperty.Schema.
SchemaVersion
== XmlConstants.EdmVersionForV1_1)