How do I initialize the datacontext with a different connectionstring for Linq to MySQL?
If i pass a connectionstring to initialize the context it doesnt seem to work if the database name is different to the one the context was created with.
Thanks.
initialize the datacontext with a different connectionstring
There is a solution for the problem.
You should change the code generation template in the following way:
Replace the
line with this one:
You should change the code generation template in the following way:
Replace the
Code: Select all
[Table(Name = @"")]
Code: Select all
[Table(Name = @"")]