C# CodeFirst元数据集合在哪里?
我正在尝试启用迁移,但遇到以下异常: 元数据集合中已存在标识为“my_table”的项。 参数名称:item 这是完整的堆栈跟踪: System.ArgumentException:元数据集合中已存在标识为“my_table”的项。 参数名称:item 位于System.Data.Entity.Core.Metadata.Edm.MetadataCollectionC# CodeFirst元数据集合在哪里?,c#,entity-framework,ef-code-first,C#,Entity Framework,Ef Code First,我正在尝试启用迁移,但遇到以下异常: 元数据集合中已存在标识为“my_table”的项。 参数名称:item 这是完整的堆栈跟踪: System.ArgumentException:元数据集合中已存在标识为“my_table”的项。 参数名称:item 位于System.Data.Entity.Core.Metadata.Edm.MetadataCollection1.AddInternal(T项) 位于System.Data.Entity.Core.Metadata.Edm.EntitySet
1.AddInternal(T项)
位于System.Data.Entity.Core.Metadata.Edm.EntitySetBaseCollection.Add(EntitySetBase项)
位于System.Data.Entity.ModelConfiguration.Edm.EdmModelExtensions.AddAssociationSet(EdmModel模型,字符串名称,AssociationType AssociationType)
位于System.Data.Entity.ModelConfiguration.Mappers.NavigationPropertyMapper.Map(PropertyInfo PropertyInfo,EntityType EntityType,Func
1 entityTypeConfiguration)
位于System.Data.Entity.ModelConfiguration.Mappers.TypeMapper.MapEntityType(类型类型)
位于System.Data.Entity.ModelConfiguration.Mappers.NavigationPropertyMapper.Map(PropertyInfo PropertyInfo,EntityType EntityType,Func1 entityTypeConfiguration)
位于System.Data.Entity.ModelConfiguration.Mappers.TypeMapper.MapEntityType(类型类型)
在System.Data.Entity.DbModelBuilder.c\u DisplayClassd.b\u 7(类型)中
位于System.Linq.Enumerable.WhereListIterator
1.MoveNext()
在System.Data.Entity.Utilities.IEnumerableExtensions.Each[T](IEnumerable1ts,Action
1action)
位于System.Data.Entity.DbModelBuilder.MapTypes(EdmModel模型)
位于System.Data.Entity.DbModelBuilder.Build(DbProviderManifest providerManifest,DbProviderInfo providerInfo)
位于System.Data.Entity.DbModelBuilder.Build(DbConnection providerConnection)
位于System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext)
在System.Data.Entity.Internal.RetryLazy2.GetValue(TInput输入)
在System.Data.Entity.Internal.LazyInternalContext.InitializeContext()中
在System.Data.Entity.Internal.LazyInternalContext.get_ModelBeInInitialized()中
位于System.Data.Entity.Infrastructure.EdmxWriter.WriteEdmx(DbContext上下文,XmlWriter编写器)
在System.Data.Entity.Utilities.DbContextensions.c_uuuDisplayClass1.b_uuu0(XmlWriter w)中
位于System.Data.Entity.Utilities.DbContextensions.GetModel(操作
1 writeXml)
位于System.Data.Entity.Utilities.DbContextensions.GetModel(DbContext上下文)
位于System.Data.Entity.Migrations.Dbmigator..ctor(DbMigrationsConfiguration配置、DbContext usersContext、DatabaseExistenceEstate ExistenceEstate、称为DbyCreateDatabase的布尔值)
位于System.Data.Entity.Migrations.DbMigrator..ctor(dbmigrations配置)
位于System.Data.Entity.Migrations.Design.MigrationScaffolder..ctor(DbMigrationsConfiguration MigrationConfiguration)
位于System.Data.Entity.Migrations.Design.ToolingFacade.ScaffoldRunner.Run()处
在System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)处
在System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)处
位于System.Data.Entity.Migrations.Design.ToolingFacade.Run(BaseRunner)
位于System.Data.Entity.Migrations.Design.ToolingFacade.ScaffoldInitialCreate(字符串语言,字符串根命名空间)
在System.Data.Entity.Migrations.EnableMigrationsCommand.c__DisplayClass2.b__0()中
位于System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(操作命令)
这是一个新的数据库,其中尚未应用迁移,也没有_umigrationhistory表
那么元数据集合位于哪里呢