管理参数以发送给功能 [英] Manage parameter to send to a function

查看:62
本文介绍了管理参数以发送给功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

工作人员,

我的问题是将必须发送给许多过程的参数存储在db中.
我必须以所有格式(字符串,向量,数组)管理所有参数.我必须创建结构来管理参数.

谢谢
Danilo

Hi staff,

My problem is to store in a db the parameter I have to send to many procedure.
I have to manage all the parameter in all the format (string, vector, array). I have to create the structure to manage parameter.

Thanks
Danilo

推荐答案

Richard,您是对的...
我会再试一次...

我必须开发一个用于管理参数的应用程序,以发送给以扩展名或插件DLL格式实现的功能.
这些外部功能(插件)也可以在以后开发.为了管理这些插件,我关注了这篇有趣的文章:http://www.dotnetmarche.org/blogs/article/archive/2007/01/29/Creare-un-programma-estensibile-tramite-plugins-_2D00_-Parte-2 .aspx
在这些插件中,我不知道要传递给构造函数的参数.
相反,各个插件知道它们接收到的参数的类型以及如何使用它们.
问题是必须创建一个架构来存储可以发送给将来的插件的所有可能参数的类型,顺序和值.
例如,一个插件可让您自定义发送电子邮件的方式...必须接收输入:
+邮件正文(字符串)
+收件人列表(数组-数据表...)
+要替换的字符串或收件人(字符串)
+错误重试次数(int)
等等.
因此,过多的参数是最多样化的,我应该在DB上构建一个结构以使用其接口进行管理.

我希望要清楚
达尼洛
Richard you are right...
I''ll try again...

I have to develop an application for managing parameters to send to functions implemented as extensions or plug-in DLL format.
These external functions (plugin) can also be developed later. To manage these plugins I have followed this interesting article: http://www.dotnetmarche.org/blogs/article/archive/2007/01/29/Creare-un-programma-estensibile-tramite-plugins-_2D00_-Parte- 2.aspx
Of these plugins I do not know the parameters to be passed to the constructor.
Individual plugins instead know the type of parameters they receive, and how to use them.
The problem is having to create an architecture to store type, sequence and value of all the possible parameters that can be sent to future plugins.
For example, a plug-in allows you to customize sending an email ... must receive input:
+ Mail body (string)
+ Recipient list (array - datatable ...)
+ String to be replaced or the recipient (string)
+ Number of retries on error (int)
and so on.
The plethora of parameters are therefore the most varied and I should build a structure on DB to manage with its interface.

I hope to be clear
Danilo


这篇关于管理参数以发送给功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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