-
I'm trying to use the
My DbConnection class: public class DbConnection: DataConnection, IDbConnection
{
public DbConnection(DataOptions<DbConnection> options) : base(options.Options)
{
}
public ITable<UserDb> User => this.GetTable<UserDb>();
}
public interface IDbConnection: IDataContext
{
public ITable<UserDb> User { get; }
} I've also registered the DataConnection in Startup.cs like this: builder.Services.AddLinqToDBContext<IDbConnection, DbConnection>((provider, options) => options
.UsePostgreSQL(builder.Configuration.GetConnectionString("Default")!)
.UseDefaultLogging(provider)); |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Change |
Beta Was this translation helpful? Give feedback.
-
@linq2db, any idea why we use |
Beta Was this translation helpful? Give feedback.
Add second constructor for now:
issue will be fixed in next release