🔒 Closed Db2 & MVC C#

Status
Not open for further replies.
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

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.:coffee:
 
Status
Not open for further replies.

About this Thread

  • 0
    Replies
  • 289
    Views
  • 1
    Participants
Last reply from:
SyntaxError303

Trending Topics

Online now

Members online
1,036
Guests online
1,606
Total visitors
2,642

Forum statistics

Threads
2,282,423
Posts
29,008,397
Members
1,222,952
Latest member
kngsngbn
Back
Top