SyntaxError303
Enthusiast
- Joined
- Jun 2, 2020
- Posts
- 8
- Reaction
- 3
- Points
- 34
Database: DB2 9.1
Language/Framework: C# MVC
IDE: VS 2015
Meron akong DB2 9.1, paano ko ma connect yong DB2 to my models (MVC).
Web.config
<add name="DB2Payroll" connectionString="Provider=IBMDADB2.DB2COPY1;Data Source=psc;User ID=admin;Location=1xx.1xx.xx0.x3" providerName="IBMDADB2.DB2COPY1" />
dbcontext class
public class PayHRISDatabase : DbContext
{
public PayHRISDatabase() : base("DB2Payroll") { }
public DbSet<PY_EMPLOYEE> employee { get; set; }
}
Error
patulong naman mga master.
Language/Framework: C# MVC
IDE: VS 2015
Meron akong DB2 9.1, paano ko ma connect yong DB2 to my models (MVC).
Web.config
<add name="DB2Payroll" connectionString="Provider=IBMDADB2.DB2COPY1;Data Source=psc;User ID=admin;Location=1xx.1xx.xx0.x3" providerName="IBMDADB2.DB2COPY1" />
dbcontext class
public class PayHRISDatabase : DbContext
{
public PayHRISDatabase() : base("DB2Payroll") { }
public DbSet<PY_EMPLOYEE> employee { get; set; }
}
Error
Could not load file or assembly 'IBM.Data.DB2' or one of its dependencies. An attempt was made to load a program with an incorrect format.
patulong naman mga master.