.NetTiers与CodeSmith [英] .NetTiers with CodeSmith

查看:98
本文介绍了.NetTiers与CodeSmith的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,

最近,我开始使用.NetTiers和CodeSmith.我发现它又好又快.我能够在几秒钟内生成代码,并且真的很容易使用.我在图层中创建自定义属性和方法时遇到了问题.如果你们中的某些人对.NetTiers和CodeSmith有很好的了解,那么请让我知道如何创建自定义属性和方法并使用它们.我可以创建自定义属性,但是在调用它们时这些属性不可用.

请指导.

提前谢谢.

问候,
Jagjot

hello Friends,

Recently I started using .NetTiers and CodeSmith. I found it good and fast. I am able to generate code in some seconds and it is really easy to use. I am facing an issue with creating custom properties and methods into the layers. If some of you have a good hand on .NetTiers and CodeSmith, then please let me know how I can create custom properties and methods and use them. I am able to create custom properties but they are not available at the time when I call them.

Please guide.

Thanks in advance.

Regards,
Jagjot

推荐答案

我已修复它.实际上,我没有在属性之上添加一些属性,这就是为什么它们对组件层不可见的原因.以下是属性:

[XmlElement(IsNullable = true)]
[DescriptionAttribute("),BindableAttribute()]
[DataObjectField(false,false,true,200)]



谢谢,
Jagjot
I fixed it. Actually I was not adding some attributes on top of the properties thats why they were not visible to component layer. Below are the attributes:

[XmlElement(IsNullable = true)]
[DescriptionAttribute(""), BindableAttribute()]
[DataObjectField(false, false, true, 200)]



Thanks,
Jagjot


这篇关于.NetTiers与CodeSmith的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆