linqdatasource: Databind from another project
I have a solution "Foo" with 2 projects. "FooCore" and "FooWeb" where FooCore peoject contains the FooDatacontext in namespace Foo.FooCore.Core.Domain . How can bind the dataco开发者_JAVA技巧ntext with linqdatasource in FooWeb project in aspx page. Is this possible by doing "<% Import Namespace="Foo.FooCore.Core.Domain"%>" in that aspx page? I hope I able to explain my problem. Hope for a good simple solution.
Just make sure you project "FooWeb" have a reference to "FooCore" then add your linqdatasource and specify the ContextTypeName="Foo.FooCore.Core.Domain.FooDatacontext "
精彩评论