visual studio 2012 - Entity Framework Code First Default Database Location -


i trying follow video tutorial on http://msdn.microsoft.com/en-us/data/jj193542 using visual studio 2012 express desktop.

i created poco's, , dbcontext, ran sample queries , worked. did not provide connection string. database? (sdf or mdf file maybe?)

during tutorial guy uses sql server object explorer view database, couldn't find view in vs express.

for reference, here default app.config gets generated.

<?xml version="1.0" encoding="utf-8"?> <configuration>   <configsections>     <!-- more information on entity framework configuration, visit http://go.microsoft.com/fwlink/?linkid=237468 -->     <section name="entityframework" type="system.data.entity.internal.configfile.entityframeworksection, entityframework, version=5.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089" requirepermission="false" />     <!-- more information on entity framework configuration, visit http://go.microsoft.com/fwlink/?linkid=237468 -->   </configsections>   <startup>     <supportedruntime version="v4.0" sku=".netframework,version=v4.5" />   </startup>   <entityframework>     <defaultconnectionfactory type="system.data.entity.infrastructure.sqlconnectionfactory, entityframework" />   </entityframework> </configuration> 

"if sql express installed (included in visual studio 2010) database created on local sql express instance (.\sqlexpress). if sql express not installed code first try , use localdb ((localdb)\v11.0) - localdb included visual studio 2012"

for more information : http://msdn.microsoft.com/en-us/data/jj591621.aspx


Comments