最新评论
老大
我怎么找不到
里面getcstype这个方法吖
2007年10月03日作成的模板(共享自动生成Dao,Dto,Entity的MyGeneration模板)
建议:大家对它进行修改时,请标明追加的机能及时间。以便他人辨别使用最新版本。
下载地址:
http://china-lee.spaces.live.com/blog/cns!677AC75A6E54D824!2639.entry
最新的模板
关于MyGenerationTool的使用
http://china-lee.spaces.live.com/blog/cns!677AC75A6E54D824!2639.entry
关于MyGenerationTool的使用
http://china-lee.spaces.live.com/blog/cns!677AC75A6E54D824!2639.entry
>>“我们知道Domain Driven Design这本书出现在Refactoring这本书之后,看来也是Martin Fowler对Refactoring进一步总结、升华的结果。”
你是不是买到假的“Domain Driven Design”书???我家的“Domain Driven Design”的作者怎么是Eric Evans?????
我在安装EDRA Wizards后增加一个新的Business Action时遇到异常can not launch Wizard:
"This wizards requires EDRA configuration files and a deploy script in order to execute. Please make sure the current solution includes them".
不知各位可曾遇到?该如何解决?
email:wanmoxiaosheng@gmail.com
re: 应用程序块 NetFetch 2007-05-28 00:36
re: 应用程序块 NetFetch 2007-05-28 00:06
我再建webForm的时候,
也遇到了
System.Security.SecurityException:Requested registry access is not allowed
用的是企业库1.1配置工具,VS2003,sql2000,.net1.1的框架,
请高手指教指教;
凌风的那个问题我也遇到过,我是重新编译了Common来解决的。
关于自定义方法,我们可以扩展nettiers生成的数据访问类,自己写存储过程让UI调用,我已经试过了,自己扩展的代码不会被下次覆盖。
System.NullReferenceException: Object reference not set to an instance of an object.
at _CodeSmith.Bulk_cst.Go()
at _CodeSmith.Bulk_cst.__RenderMethod1(TextWriter writer, Control control)
at CodeSmith.Engine.DelegateControl.Render(TextWriter writer)
at CodeSmith.Engine.Control.RenderChildren(TextWriter writer)
at CodeSmith.Engine.CodeTemplate.Render(TextWriter writer)
at CodeSmith.Engine.CodeTemplate.RenderToString()
at CodeSmith.Gui.CodeTemplateGenerator.f(Object A_0, EventArgs A_1)
我是说改成
private string[] _templatesFileNames = new string[] { "MyEntityByTable.cst" ,
"MyEntityByView.cst" ,
"CollectionBase.cst" ,
"..\\DataAccess\\DataServices.cst"};
coolerboy
你是不是没有把“BizObject.cst”拷贝到一起使用
private string[] _templatesFileNames = new string[] { "MyEntityByTable.cst" , "MyEntityByView.cst" , "CollectionBase.cst" , "..\\DataAccess\\DataServices.cst" , "..\\BizObject\\BizObject.cst"}; //就是这句
如果不需要,你可以把它去掉。
急问:Enterprise Library 和 Offline Application Block 有什么区别呀?
生成时出现以下错误:不知什么原因:(
System.ArgumentException: Path must be a valid file.
at CodeSmith.Engine.CodeTemplateInfo..ctor(String path)
at CodeSmith.Engine.CodeTemplateCompiler..ctor(String path)
at _CodeSmith.Bulk_cst.CompileTemplate(String templateName)
at _CodeSmith.Bulk_cst.LoadTemplates()
at _CodeSmith.Bulk_cst.Go()
at _CodeSmith.Bulk_cst.__RenderMethod1(TextWriter writer, Control control)
at CodeSmith.Engine.DelegateControl.Render(TextWriter writer)
at CodeSmith.Engine.Control.RenderChildren(TextWriter writer)
at CodeSmith.Engine.CodeTemplate.Render(TextWriter writer)
at CodeSmith.Engine.CodeTemplate.RenderToString()
at CodeSmith.Gui.CodeTemplateGenerator.b(Object , EventArgs )
在 Enterprise Library 2006中使用是在继承的时候的步骤是什么样啊?多谢了
你这个是sqlserver下的吧,在oracle下怎么样?
能否对各个cst文件解释一下,最好有用codesmith生成后的整个项目文件例子
GetCallerParameters方法,在CommonSqlCode中添加如下代码:
public string GetCallerParameters( ParameterSchemaCollection parameters)
{
string output = "";
for (int i = 0; i < parameters.Count; i++)
{
output += GetPrivateName(parameters[i].Name);
if (i < parameters.Count - 1)
{
output += ", ";
}
}
return output;
}
BizObject.cst有问题,没有GetCallerParameters方法.
to 凌风_314:
保证InstallServices.bat正确运行,如果有问题,就分析一下这个批处理文件,使之正确运行。
我在使用数据应用程序块时,出现了异常。不知道该怎么解决,求教。
如下:
安全性异常
说明: 应用程序试图执行安全策略不允许的操作。要授予此应用程序所需的权限,请与系统管理员联系,或在配置文件中更改该应用程序的信任级别。
异常详细信息: System.Security.SecurityException: 不允许所请求的注册表访问权。
这个模板怎么用啊,好像会报错,老大能不能用一个实例详细讲解一下啊!
名称“GetCallerParameters”在类或命名空间“_CodeSmith.BizObject_cst”中不存在
是的,配置应用块是比较烦,我用Nini比较方便
但是要用到DAAB就没办法只能用配置块了
netTiers还是不错的,但自定义方法还是有点问题,自己写的存贮过程只返回单值还是会被netTiers把生成的方法写成void的
The stored procedure to method convertion follow these rules for the method return type:
if sp rowset == table rowset then method return an EntityCollection
if sp rowset == one value (ex: int, varchar, etc.) then method return a scalar value
if other rowset then method return void
怎样才算单值呢,存贮过程return一个output 参数还不算是吗?
等待我写的 制作自己的应用程序块 系列文章吧,将详细的分析一下代码,这篇文章写的却是很乱。
re: Enterprise LibraryV1.0-概述 Benny Ng (MiaoMiaoGa) 2005-09-28 10:59
我在部署时也遇到同样的问题.怎么办.也是System.Security.SecurityException:Requested registry access is not allowed 这个错误.天啊...用了EL就这样?那其它人是怎么部署的?XCOPY的部署不行?...
看看这个文件:DbAuthenticationProvider.cs,里面有个实现IAuthenticationProvider接口的类,此接口只有一个方法Authenticate。
想请教以下,用这个模块来访问数据,好象性能下降很多,读一个很小的表格竟然要2秒左右才显示(不是机器差,赛样2.2 256m),是什么原因?谢谢
re: Enterprise LibraryV1.0-安全应用程序块使用说明 Benny Ng (MiaoMiaoGa) 2005-09-20 08:51
我看了Enterprise Library的源代码,怎么发现不了它在哪里调用GetPassword存储过程验证用户的?
验证代码如下:
IAuthenticationProvider authenticationProvider = AuthenticationFactory.GetAuthenticationProvider();
IIdentity identity;
NamePasswordCredential credentials = new NamePasswordCredential(username, password);
bool authenticated = authenticationProvider.Authenticate(credentials, out identity);
当然前提是我已经用Configuration Tools设置好了数据连接等数据项之后了,没错,验证可以通过.而我也知道它是通过使用存储过程GetPassword去验证的.
但问题是.我只在Security.Database里的UserRoleManager.cs才发现了它使用了存储过程"GetPassword".但我却没办法发现上面的
authenticationProvider.Authenticate(credentials, out identity);
是在哪里调用了那边的东西.源代码看了一天都看不懂.
部署的时候只是部署Assembly是没有用的,还需要一些附加支持,所以客户端要安装EL,当然如果你已经将EL整合进你自己的项目,则另当别论。就像WSE一样,只复制Microsoft.Web.Services2.dll不管用。
我是问部署在客户的时候,不是说开发的时候
想问一下,大哥有没有在实际的项目中应用EL
应用的时候碰到过这个问题吗?
谢谢。
我是问部署在客户的时候,不是说开发的时候
想问一下,大哥有没有在实际的项目中应用EL
应用的时候碰到过这个问题吗?
谢谢。
安装后,有个Install Services,执行一下试试
我在使用el1.1中的数据访问模块的时候部署的时候出现如下错误:(但开发的时候没有错)
System.Security.SecurityException:Requested registry access is not allowed
在网上查了一下,有人也碰到过,有人提出两种解决方案
1,修改注册表(不太现实,怎么能这么麻烦,客户受不了吧)
2,重新编译EL的Common
我两种方法都试了,但部署的时候一登陆还是报这种错误
我的环境是.NET 1.1 +2000 server sp4
想请教一下有什么更好的方法吗?谢谢
VO or DTO is evil?这要看什么样的程序,基于服务的程序一般传递VO,基于对象的程序VO or DTO is evil倒是可以理解。