Answer the question
In order to leave comments, you need to log in
How to connect to database in azure?
public class MusicContext : DbContext
{
public DbSet<Album> Albums { get; set; }
public MusicContext(): base("MyDB"){}
}
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
</configSections>
<connectionStrings>
<add name="MyDB" providerName="System.Data.SqlClient" connectionString="Server=tcp:pleshakov.database.windows.net,1433;Data Source=pleshakov.database.windows.net;Initial Catalog=MyDB;Persist Security Info=False;User ID=;Password=;MultipleActiveResultSets=False;Encrypt=True;Trusted_Connection=false;Encrypt=false;TrustServerCertificate=False;Connection Timeout=30;"/>
</connectionStrings>
</configuration>
Answer the question
In order to leave comments, you need to log in
Once a poppy, then read below
stackoverflow.com/questions/30506990/connecting-to...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question