multiple databases using sqlmetal

Currently, we are replicating from a file system database and are not able to include foreign key constraints. Therefore, we created a model database with the same table structures and added the foreign key constraints. With this database, I use an O/R mapping tool to create my dll.

I am trying to do the same thing with sqlmetal. I created the cs file and when I try to pass a different connection string than the one used to create the cs file, I am getting an error when I try to bind the object to the grid. I am getting an InvalidCastException on .DataBind()?

Please let me know what you think?

Thanks,

Joe

[649 byte] By [gatorsjdc] at [2007-12-21]
# 1
I'm assuming that both databases are the same type. Can you reply with the exception call stack?
TerryAdams at 2007-9-10 > top of Msdn Tech,Visual Studio Orcas,LINQ Project General...

Visual Studio Orcas

Site Classified