64 references to EntityFrameworkVersions
System.Data.Entity.Design (64)
System\Data\Entity\Design\AspNet\EntityModelBuildProvider.cs (3)
112
return
EntityFrameworkVersions
.Version1;
116
return
EntityFrameworkVersions
.Version2;
118
return
EntityFrameworkVersions
.Version3;
System\Data\Entity\Design\Common\EDesignUtil.cs (1)
173
if (!
EntityFrameworkVersions
.IsValidVersion(targetEntityFrameworkVersion))
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (5)
165
Debug.Assert(_schemaVersion >=
EntityFrameworkVersions
.Version3, "_schemaVersion >= EntityFrameworkVersions.Version3");
190
Debug.Assert(_schemaVersion >=
EntityFrameworkVersions
.Version3, "_schemaVersion >= EntityFrameworkVersions.Version3");
221
Debug.Assert(_schemaVersion >=
EntityFrameworkVersions
.Version3 && !_isModel, "_schemaVersion >= EntityFrameworkVersions.Version3 && !_isModel");
639
string xmlNamespace =
EntityFrameworkVersions
.GetSchemaNamespace(_schemaVersion, _isModel ? DataSpace.CSpace : DataSpace.SSpace);
643
if (_isModel && _schemaVersion >=
EntityFrameworkVersions
.Version3)
System\Data\Entity\Design\Common\MetadataUtil.cs (1)
317
if (
EntityFrameworkVersions
.Version1 == entityFrameworkVersion)
System\Data\Entity\Design\Common\OneToOneMappingSerializer.cs (1)
261
_xmlNamespace =
EntityFrameworkVersions
.GetSchemaNamespace(schemaVersion, DataSpace.CSSpace);
System\Data\Entity\Design\EntityCodeGenerator.cs (13)
57
/// in the <see cref="
EntityFrameworkVersions
"/> class.
102
/// Framework version numbers as described in the <see cref="
EntityFrameworkVersions
"/> class.
140
/// described in the <see cref="
EntityFrameworkVersions
"/> class.
187
/// Framework version numbers as described in the <see cref="
EntityFrameworkVersions
"/> class.
277
else if (
EntityFrameworkVersions
.TryGetEdmxVersion(reader, out entityFrameworkVersion))
310
if (targetFrameworkVersion <
EntityFrameworkVersions
.Version2)
312
targetFrameworkVersion =
EntityFrameworkVersions
.Version2;
315
if (targetFrameworkVersion >
EntityFrameworkVersions
.Default)
317
errorList.Add(new EdmSchemaError(Strings.DefaultTargetVersionTooLow(
EntityFrameworkVersions
.Default, targetFrameworkVersion), (int)ModelBuilderErrorCode.SchemaVersionHigherThanTargetVersion, EdmSchemaErrorSeverity.Warning));
328
if (targetFrameworkVersion ==
EntityFrameworkVersions
.Version1)
339
if (schemaVersion ==
EntityFrameworkVersions
.EdmVersion1_1)
676
if (targetEntityFrameworkVersion >=
EntityFrameworkVersions
.Latest)
688
if (targetEntityFrameworkVersion >=
EntityFrameworkVersions
.Latest)
System\Data\Entity\Design\EntityFrameworkVersions.cs (13)
101
Debug.Assert(entityFrameworkVersion ==
EntityFrameworkVersions
.Version3, "did you add a new version?");
134
if (entityFrameworkVersion ==
EntityFrameworkVersions
.Version1)
138
else if (entityFrameworkVersion ==
EntityFrameworkVersions
.Version2)
144
Debug.Assert(entityFrameworkVersion ==
EntityFrameworkVersions
.Version3, "did you add a new version?");
152
if (entityFrameworkVersion ==
EntityFrameworkVersions
.Version1)
156
else if (entityFrameworkVersion ==
EntityFrameworkVersions
.Version2)
162
Debug.Assert(entityFrameworkVersion ==
EntityFrameworkVersions
.Version3, "did you add a new version?");
170
if (entityFrameworkVersion ==
EntityFrameworkVersions
.Version1)
174
else if (entityFrameworkVersion ==
EntityFrameworkVersions
.Version2)
180
Debug.Assert(entityFrameworkVersion ==
EntityFrameworkVersions
.Version3, "did you add a new version?");
220
entityFrameworkVersion =
EntityFrameworkVersions
.Version1;
223
entityFrameworkVersion =
EntityFrameworkVersions
.Version2;
226
entityFrameworkVersion =
EntityFrameworkVersions
.Version3;
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (7)
202
_targetEntityFrameworkVersion =
EntityFrameworkVersions
.Latest;
318
if (this.GenerateForeignKeyProperties && this._targetEntityFrameworkVersion <
EntityFrameworkVersions
.Version2)
394
if (this._targetEntityFrameworkVersion >=
EntityFrameworkVersions
.Version2)
396
Debug.Assert(
EntityFrameworkVersions
.Latest ==
EntityFrameworkVersions
.Version3, "Did you add a new framework version");
494
if (_storeFunctions == null || _storeFunctions.Length == 0 || _targetEntityFrameworkVersion <
EntityFrameworkVersions
.Version3)
911
if (_targetEntityFrameworkVersion >
EntityFrameworkVersions
.Version1)
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (11)
104
return DoGenerateStoreMetadata(filters,
EntityFrameworkVersions
.Latest);
115
return DoGenerateStoreMetadata(filters,
EntityFrameworkVersions
.Latest);
191
if (_targetEntityFrameworkVersion >=
EntityFrameworkVersions
.Version3 &&
192
_loader.StoreSchemaModelVersion >=
EntityFrameworkVersions
.Version3)
278
/// Store schema model is the one used in <see cref="
EntityFrameworkVersions
.Version2"/>.
285
return CreateStoreSchemaConnection(providerInvariantName, connectionString,
EntityFrameworkVersions
.Version2);
291
/// described in the <see cref="
EntityFrameworkVersions
"/> class.
334
Debug.Assert(
EntityFrameworkVersions
.IsValidVersion(targetEntityFrameworkVersion), "EntityFrameworkVersions.IsValidVersion(targetEntityFrameworkVersion)");
338
if (targetEntityFrameworkVersion >=
EntityFrameworkVersions
.Version3)
571
if (_targetEntityFrameworkVersion <
EntityFrameworkVersions
.Version3)
778
if (_targetEntityFrameworkVersion ==
EntityFrameworkVersions
.Version1)
System\Data\Entity\Design\EntityStoreSchemaGenerator\EntityStoreSchemaGenerator.LoadMethodSessionState.cs (1)
149
_targetEntityFrameworkVersion.CompareTo(
EntityFrameworkVersions
.Version3) < 0 &&
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (2)
315
if (targetFrameworkVersion >
EntityFrameworkVersions
.Default)
317
errorList.Add(new EdmSchemaError(Strings.DefaultTargetVersionTooLow(
EntityFrameworkVersions
.Default, targetFrameworkVersion), (int)System.Data.Entity.Design.SsdlGenerator.ModelBuilderErrorCode.SchemaVersionHigherThanTargetVersion, EdmSchemaErrorSeverity.Warning));
System\Data\Entity\Design\SSDLGenerator\EntityStoreSchemaGeneratorDatabaseSchemaLoader.cs (4)
43
foreach (var version in
EntityFrameworkVersions
.ValidVersions.Where(v => v >
EntityFrameworkVersions
.Version2).OrderByDescending(v => v))
59
storeSchemaModelVersion =
EntityFrameworkVersions
.Version2;
122
Debug.Assert(_storeSchemaModelVersion >=
EntityFrameworkVersions
.Version3, "_storeSchemaModelVersion >= EntityFrameworkVersions.Version3");
System\Data\Entity\Design\SSDLGenerator\FunctionDetailsReader.cs (1)
35
if (storeSchemaModelVersion >=
EntityFrameworkVersions
.Version3)
System\Data\EntityModel\EntityClassGenerator.cs (1)
318
if (EntityFrameworkVersionsUtil.ConvertToVersion(itemCollection.EdmVersion) >=
EntityFrameworkVersions
.Version2)