Restatement of the question
I\'m resurrecting this question because I just ran into this error again today, and I\'m still utterly confused why the
The clash is between namespace CompanyName.Foo
and CompanyName.Foo.Models.Foo
, and not Foo
. I'm not exactly sure how/why the compiler can't distinguish both though.
You can try using namespace alias to shorten full qualifying Foo
e.g. using coyModels = CompanyName.Foo.Models
From the reference, seems like you can use /context:
and /namespace:
to specify the data context class (instead of using table name) and namespace.