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