开发者

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 "

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜