IT:AD:Code First:HowTo:Get Started

Summary

  • In Visual Studio…
  • In a new Console Project…
  • As per 1):
  • Install-Package Microsoft.AspNet.WebApi.OwinSelfHost
  • and create the routing.
  • Test it before getting on to the db site.
  • Install-Package EntityFramework or Install-Package EntityFramework.SqlServerCompact
    • Accept the licenses…
    • May require a restart if it is the first time you've installed EF.
  • Back in Visual Studio… * Create a SqlServer CE connection string.

<configuration>
  <connectionStrings>
    <add name="FooProjectDbCN"
         providerName="System.Data.SqlServerCe.4.0"
         connectionString="Data Source=|DataDirectory|\Data\FooProjectDb.sdf"/>
  </connectionStrings>
</configuration>


  • /home/skysigal/public_html/data/pages/it/ad/code_first/howto/get_started/home.txt
  • Last modified: 2023/11/04 02:19
  • by 127.0.0.1