◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆ 【実装】 -------------------------- ↓web.config -------------------------- <configuration> <configSections> <!-- For 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" /> </configSections> <connectionStrings> <add name="testcn" connectionString="Data Source=DB名;User Id=ユーザー;Password=パスワード" providerName="Oracle.DataAccess.Client"/> </connectionStrings>
-------------------------- ↓XXXContextクラス -------------------------- using System.Data.Entity; using XXX.Models; using Oracle.DataAccess.Client; using System.Configuration; namespace XXX.DAL { public class XXXContext : DbContext { public DbSet<サンプル> サンプル { get; set; }