Home > Net >  Who can provide the.net CORE examples of connect to the db2 database online, and so on, if you solve
Who can provide the.net CORE examples of connect to the db2 database online, and so on, if you solve

Time:11-18

I currently the.net core connect to the db2 database is always present, have severe and provide an example, we should be grateful,

The following is the environment, there is always problem:

Db2 database components: IBM. Data. The core version (1.3.0.100)
IBM. EntityFrameworkCore (1.3.0.100)

Db2 database: the installation of the product: db2 Express - C - DB2COPY1, version: db2/NT64 10.1.0


As the EF CODE FIRST hit the following error message, as version has a problem

Add - Migration Initial
System. TypeLoadException: Method 'get_Info type in' IBM. EntityFrameworkCore. Proceeds. Internal. Db2OptionsExtension 'from the assembly' IBM EntityFrameworkCore, Version=1.2.2.201, Culture=neutral, PublicKeyToken=7 c307b91aa13d208 'does not have an implementation.
At IBM, EntityFrameworkCore Db2DbContextOptionsExtensions. UseDb2
The at ConsoleApp1. Models. OderDbContext. OnConfiguring (DbContextOptionsBuilder optionsBuilder) in C: \ Users \ \ source \ repos \ 86186 ConsoleApp1 \ ConsoleApp1 \ Models \ OderDbContext cs: line 18
At Microsoft, EntityFrameworkCore DbContext. Get_InternalServiceProvider ()
At Microsoft. EntityFrameworkCore. Proceeds. Internal. InfrastructureExtensions. GetService [TService] (IInfrastructure ` accessor 1)
At Microsoft. EntityFrameworkCore. Design. Internal. DbContextOperations. CreateContext (Func ` 1 factory)
At Microsoft. EntityFrameworkCore. Design. Internal. DbContextOperations. CreateContext (String contextType)
At Microsoft. EntityFrameworkCore. Design. Internal. MigrationsOperations. AddMigration (String name, String outputDir, String contextType)
At Microsoft. EntityFrameworkCore. Design. OperationExecutor. AddMigrationImpl (String name, String outputDir, String contextType)
At Microsoft. EntityFrameworkCore. Design. OperationExecutor. OperationBase. & lt;> C__DisplayClass3_0 ` 1. & lt; Execute> B__0 ()
At Microsoft. EntityFrameworkCore. Design. OperationExecutor. OperationBase. Execute (Action Action)
Method 'get_Info type in' IBM. EntityFrameworkCore. Proceeds. Internal. Db2OptionsExtension 'from the assembly' IBM EntityFrameworkCore, Version=1.2.2.201, Culture=neutral, PublicKeyToken=7 c307b91aa13d208 'does not have an implementation.
PM> Add - Migration Initial
  • Related