Thanks Jon I think the line wrapping was probably caused by the error being written to the console.
I've done as you suggested, and have managed to progress a step further. Now I get the followng error: C:\temp\DbLinq-0.18\DbLinq-14102009\build.dbg>DbMetal.exe "/conn:Data Source=arealdb;User ID=dbuser; Password=dbuser;" -Provider:Oracle - database=areal -code:TestDatabase.cs DbLinq Database mapping generator 2008 version 0.19 for Microsoft (R) .NET Framework version 3.5 Distributed under the MIT licence (http://linq.to/db/license) >>> Reading schema from Oracle database <<< writing C# classes in file 'ArealDatabase.cs' DbMetal failed:System.InvalidOperationException: Sequence contains more than one element at System.Linq.Enumerable.Single[TSource] (IEnumerable`1 source) at DbLinq.Util.DbmlExtensions.GetReverseAssociation(Database schema, Associat ion association) in C:\temp\DbLinq-0.18\DbLinq-14102009\src \DbLinq\Util\DbmlExte nsions.cs:line 53 at DbMetal.Generator.Implementation.CodeTextGenerator.CodeGenerator.WriteClas sChildrenAttachment(CodeWriter writer, Table table, Database schema, GenerationC ontext context) in C:\temp\DbLinq-0.18\DbLinq-14102009\src \DbMetal\Generator\Imp lementation\CodeTextGenerator \CodeGenerator.Class.cs:line 702 at DbMetal.Generator.Implementation.CodeTextGenerator.CodeGenerator.WriteClas s(CodeWriter writer, Table table, Database schema, GenerationContext context) in C:\temp\DbLinq-0.18\DbLinq-14102009\src\DbMetal\Generator \Implementation\CodeTe xtGenerator\CodeGenerator.Class.cs:line 86 at DbMetal.Generator.Implementation.CodeTextGenerator.CodeGenerator.WriteClas ses(CodeWriter writer, Database schema, GenerationContext context) in C:\temp\Db Linq-0.18\DbLinq-14102009\src\DbMetal\Generator \Implementation\CodeTextGenerator \CodeGenerator.Class.cs:line 52 at DbMetal.Generator.Implementation.CodeTextGenerator.CodeGenerator.Write (Tex tWriter textWriter, Database dbSchema, GenerationContext context) in C:\temp\DbL inq-0.18\DbLinq-14102009\src\DbMetal\Generator \Implementation\CodeTextGenerator\ CodeGenerator.cs:line 99 at DbMetal.Generator.Implementation.Processor.GenerateCode(Parameters paramet ers, Database dbSchema, ISchemaLoader schemaLoader, String filename) in C:\temp\ DbLinq-0.18\DbLinq-14102009\src\DbMetal\Generator \Implementation\Processor.cs:li ne 205 at DbMetal.Generator.Implementation.Processor.WriteSchema(Database dbSchema, ISchemaLoader schemaLoader, Parameters parameters) in C:\temp \DbLinq-0.18\DbLinq -14102009\src\DbMetal\Generator\Implementation \Processor.cs:line 150 at DbMetal.Generator.Implementation.Processor.ProcessSchema(Parameters parame ters) in C:\temp\DbLinq-0.18\DbLinq-14102009\src\DbMetal \Generator\Implementatio n\Processor.cs:line 114 Any suggestions for what I can do abou this? Thanks for your help. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DbLinq" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/dblinq?hl=en -~----------~----~----~----~------~----~------~--~---
