I’ve recently installed the latest version of dotConnect for PostgreSQL 7.8.862 and I’m having some issues to make my application running.
My application targets framework .NETCoreApp 1.1 and has dependencies on the following libs:
Assemblies:
- Devart.Data (5.0.1654.0)
- Devart.Data.PostgreSQL (7.8.862.0)
- Devart.Data.PostgreSQL.Entity.EFCore (7.8.862.0)
- Devart.Data.PostgreSQL.Entity.EFCore.Design (7.8.862.0)
NuGet:
- Microsoft.EntityFrameworkCore.Tools (1.1.0)
But when I create this class, I can’t compile it:
Code: Select all
public class MyDbContext : DbContext
{
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
// this line causes the build error
optionsBuilder.UsePostgreSql(“connection string goes here”);
}
}
- error CS0012: The type 'Action<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
- error CS0012: The type 'DbConnection' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Best Regards
Lukas