linq to sql 编译到不同的文件


 

 

 

 

在生成事件中添加下面的代码:

IF $(ConfigurationName) == SQLGEN(NWR) "%PROGRAMFILES%\Microsoft SDKs\Windows\v6.0A\Bin\sqlmetal" /server:127.0.0.1 /database:databasename /user:admin /password:123456 /dbml:$(ProjectDir)LINQ\EProcess\NWR\NWR.dbml /sprocs /functions /entitybase:LINQEntityBase
IF $(ConfigurationName) == SQLGEN(NWR) "%PROGRAMFILES%\Microsoft SDKs\Windows\v6.0A\Bin\sqlmetal" /namespace:UOSPCore.LINQ.EProcess.NWR /code:$(ProjectDir)LINQ\EProcess\NWR\NWR.designer.cs /language:csharp /context:NWRDataContext /entitybase:LINQEntityBase /serialization:Unidirectional $(ProjectDir)LINQ\EProcess\NWR\NWR.dbml

posted @ 2011-12-02 13:56  不弃的追求  阅读(166)  评论(0编辑  收藏  举报