Incorrect dwsLinqSql.LinqSqlFactory declaration
Issue #54
closed
"compiler: IdwsCompiler" is required (interface) but "compiler: TdwsCompiler" found (class)
I assume TdwsCompiler (class) type should be replaced with IdwsCompiler (interface) type all over the unit but below fix may work as well.
function LinqSqlFactory(compiler: IdwsCompiler; symbol: TTypeSymbol): ILinqQueryBuilder;
var
factory: TLinqSqlFactory;
begin
factory := TLinqSqlFactory.Create(compiler.Compiler);
if symbol.IsCompatible(factory.FDatabaseSymbol) then
result := factory
else begin
result := nil;
factory.Free;
end;
end;
Comments (2)
-
-
repo owner - edited description
- changed status to closed
Linq units compile, but are not maintained at the moment beyond compilation
- Log in to comment
I can confirm that this is working: