AnantLabs / codesmith

Automatically exported from code.google.com/p/codesmith
1 stars 0 forks source link

Unable to generate against the AdventureWorks2012 database. #678

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the quickstart against the AdventureWorks2012 database.

What is the expected output? What do you see instead?
Everything is generated.

Please use labels and text to provide additional information.

D:\Documents\CodeSmith 
Generator\Templates\PLINQO\AdventureWorks2012\AdventureWorks2012.Data\AdventureW
orks2012.Data.csp(0,0) Could not find column DocumentNode for assoication 
FK_ProductDocument_Document_DocumentNode.
Stack Trace:
   at LinqToSqlShared.Generator.DbmlGenerator.GetKeyMembers(Table table, MemberColumnSchemaCollection members, String name)
   at LinqToSqlShared.Generator.DbmlGenerator.CreateAssociation(Table foreignTable, TableKeySchema tableKeySchema)
   at LinqToSqlShared.Generator.DbmlGenerator.CreateAssociations(Table table, TableSchema tableSchema)
   at LinqToSqlShared.Generator.DbmlGenerator.GetTable(TableSchema tableSchema, Boolean processAssociations)
   at LinqToSqlShared.Generator.DbmlGenerator.Create(DatabaseSchema databaseSchema)
   at _CodeSmith.Dbml_cst.Generate() in d:\Documents\CodeSmith Generator\Samples\v6.5\Templates\Frameworks\PLINQO\CSharp\Dbml.cst:line 175
   at _CodeSmith.Dbml_cst.__RenderMethod1(TextWriter writer, Control control) in d:\Documents\CodeSmith Generator\Samples\v6.5\Templates\Frameworks\PLINQO\CSharp\Dbml.cst:line 231

Original issue reported on code.google.com by bniemyjski on 11 Feb 2013 at 10:03

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r2950.

Fixed a bug where an exception would be thrown when trying to add an 
association that contains a column that was is not a supported db type (E.G., 
spatial types).

Original comment by bniemyjski on 12 Feb 2013 at 12:26

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 12 Feb 2013 at 12:30