C# Web API个人帐户身份验证和现有数据库
在visual studio 2013中,我有一个包含两个项目的解决方案:C# Web API个人帐户身份验证和现有数据库,c#,.net,asp.net-mvc,entity-framework,asp.net-web-api,C#,.net,Asp.net Mvc,Entity Framework,Asp.net Web Api,在visual studio 2013中,我有一个包含两个项目的解决方案: -An entity framework project "database first" -A web api project with individual accounts authentication, with a reference to the entity framework project 在Sql Server中,我有一个现有数据库,实体框架项目是从该数据库生成的。 现在在web api项目中,我
-An entity framework project "database first"
-A web api project with individual accounts authentication, with a reference to the entity framework project
在Sql Server中,我有一个现有数据库,实体框架项目是从该数据库生成的。
现在在web api项目中,我在web.config中键入了以下连接字符串:
<connectionStrings>
<add name="StrokeInEntities" connectionString="metadata=res: ...... />
<add name="DefaultConnection" connectionString="Data Source ....... />
</connectionStrings>
其中:
DefaultConnection用于身份验证,web api在现有数据库中生成表dbo.AspNetUsers、dbo.AspNetUserRoles等。。。
StrokeIndenties连接用于从web api控制器访问现有表
现在的问题是,当我从WebAPI控制器访问一个现有表时,我在db中看到一个新表,它以dbo前缀创建。例如,如果我访问表People,db将创建一个新表dbo.People
如何消除这种影响