DbLinq / dblinq2007

LINQ provider for Oracle, PostgreSQL, MySQL, Ingres, SQLite, Firebird and ... SQL Server
Other
62 stars 32 forks source link

Can't use Sqlmetal under Mono #193

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use sqlmetal under mono
Example command line:
mono sqlmetal.exe --user=user --password=pass --server=server --database=db
--provider=PostgreSql --code=MyDataContext.cs

What is the expected output? What do you see instead?
Sqlmetal should generate a DBML file or a .cs
Instead I get this exception:

sqlmetal failed:System.ArgumentException: Unable to resolve
dbLinqSchemaLoaderType: DbLinq.PostgreSql.PgsqlSchemaLoader, System.Data.Linq
  at DbMetal.Generator.Implementation.SchemaLoaderFactory.Load
(DbMetal.Parameters parameters, System.String dbLinqSchemaLoaderTypeName,
System.String databaseConnectionTypeName, System.String sqlDialectTypeName)
[0x00000] in <filename unknown>:0 
  at DbMetal.Generator.Implementation.SchemaLoaderFactory.Load
(DbMetal.Parameters parameters) [0x00000] in <filename unknown>:0 
  at DbMetal.Generator.Implementation.Processor.ReadSchema
(DbMetal.Parameters parameters, ISchemaLoader& schemaLoader) [0x00000] in
<filename unknown>:0 
  at DbMetal.Generator.Implementation.Processor.ProcessSchema
(DbMetal.Parameters parameters) [0x00000] in <filename unknown>:0 

What version of the product are you using? On what operating system?
DbLinq Trunk, Mono 2.6

Original issue reported on code.google.com by matthieu...@gmail.com on 2 Feb 2010 at 4:16

GoogleCodeExporter commented 9 years ago
System.Xml.Serialization seriously sucks, and the code needs to be replaced.

(Specifically, XML Serialization requires that the types be public, but since 
these 
types are inside System.Xml.Linq.dll they can't be public -- it would be an 
incompatible API extension -- so XML Serialization is complete FAIL here.  
We'll need 
to use XLinq instead.)

Original comment by jonmpr...@gmail.com on 10 Mar 2010 at 4:27

GoogleCodeExporter commented 9 years ago

Original comment by jonmpr...@gmail.com on 10 Mar 2010 at 7:57

GoogleCodeExporter commented 9 years ago

Original comment by jonmpr...@gmail.com on 18 Mar 2010 at 6:24