posted @ 2009-11-01 13:44 阿修罗一平 阅读(1716) 评论(5) 编辑
posted @ 2008-05-06 09:58 阿修罗一平 阅读(2024) 评论(12) 编辑
posted @ 2007-03-15 15:00 阿修罗一平 阅读(13517) 评论(17) 编辑
posted @ 2007-03-14 17:19 阿修罗一平 阅读(12912) 评论(20) 编辑
posted @ 2006-10-17 13:36 阿修罗一平 阅读(18213) 评论(12) 编辑
To visual studio 2005 execute:
Infragistics2.ToolboxUtility.exe /t:8.0 8.2
from
\t:8.0 is the vesion of Visual Studio (in a VS window go to Help->About Microsoft Visual Studio ej: 8.0.50727.42)
8.2 is the version of Build or Relese (Ej NetAdvantage for .NET 2008 Vol. 2 CLR 2.0)
8 year
2 vol
如果是Infragistics.NetAdvantage.for.Windows.Forms.2009.Vol.1(CLR2.0),
then execute:
Infragistics2.ToolboxUtility.exe /t:8.0 9.1
To visual studio 2008 execute:
Infragistics2.ToolboxUtility.exe /v /t:9.0 9.1
posted @ 2011-05-14 17:08 阿修罗一平 阅读(89) 评论(0) 编辑
1、需要使用配置文件
我们在使用NUnit做单元测试的时候,逻辑代码中可能会使用到应用的配置文件里的数据,比如常见的App.config的数据库连接字符串。解决方法就是将配置文件(如App.config)放在测试项目中,偷懒的话就设置为“始终复制”,编译并测试项目,就可访问配置文件中的数据了。
<configuration>
<appSettings>
<add key="DALTYPE" value="VLP2011.SQLServerDAL"/>
<add key="CONNECTIONSTRING" value="server=YIPING\SQLSERVER2005;database=VPL2011_BaseDB;uid=sa;pwd=sa"/>
</appSettings>
</configuration>
string ConnectionString = ConfigurationManager.AppSettings["CONNECTIONSTRING"];
Console.WriteLine("连接字符串:" + path);
posted @ 2011-05-06 22:26 阿修罗一平 阅读(34) 评论(0) 编辑
有些用法老是记不住,现在记录在网上,下次就容易查到了,不必到处搜索了。
1、Groupby
var tempPlanGoodsItems =
(from p in m_StockInPlan.GoodsItems
group p by new { p.GoodsName, p.MaterialNo, p.CompanySerialNo, p.SpecAndModel, p.BatchNo, p.SkuNo } into g
select new RestGoodsItem
{
GoodsName = g.Key.GoodsName,
MaterialNo = g.Key.MaterialNo,
CompanySerialNo = g.Key.CompanySerialNo,
SpecAndModel = g.Key.SpecAndModel,
BatchNo = g.Key.BatchNo,
SkuNo = g.Key.SkuNo,
PlanQuantity = g.Sum<PlanGoodsItem>(p => p.Quantity),
Quantity = 0,
}).ToList<RestGoodsItem>();
2、主子表查询(子表条件)
IList<StockOutPlan> stockOutPlans = m_StockOutPlanBizService.CreateQueryNoNoLazies("select distinct p from StockOutPlan as p inner join p.GoodsItems as g where g.StockInPlanNo='" + m_StockInPlan.PlanNo + "'", new List<string> { StockOutPlan.NON_LAZY_GOODSITEMS});
posted @ 2011-02-21 16:44 阿修罗一平 阅读(21) 评论(0) 编辑
posted @ 2010-04-02 16:57 阿修罗一平 阅读(194) 评论(0) 编辑
posted @ 2009-11-12 20:18 阿修罗一平 阅读(768) 评论(0) 编辑
posted @ 2009-11-01 13:44 阿修罗一平 阅读(1716) 评论(5) 编辑
posted @ 2009-09-28 21:15 阿修罗一平 阅读(417) 评论(0) 编辑
posted @ 2009-09-28 20:09 阿修罗一平 阅读(584) 评论(0) 编辑
posted @ 2009-04-07 09:00 阿修罗一平 阅读(2925) 评论(3) 编辑
posted @ 2008-05-06 09:58 阿修罗一平 阅读(2024) 评论(12) 编辑
posted @ 2007-08-27 15:55 阿修罗一平 阅读(3293) 评论(18) 编辑
posted @ 2007-08-17 16:59 阿修罗一平 阅读(2181) 评论(3) 编辑
posted @ 2007-08-02 13:35 阿修罗一平 阅读(5392) 评论(8) 编辑

