.NET中基于客户的配置设置 [英] customer based configuration settings in .NET

查看:62
本文介绍了.NET中基于客户的配置设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我们公司有一种产品,有很多客户.当前,如果有任何客户需求发生变化,我们会做些什么,我们会直接更改代码,然后将更改的版本发送给该客户,其他客户也是如此.

我需要一个机制,因此当任何客户需要任何更改时,我们只需要更改配置文件的设置即可.

例如,客户ABC Corp需要提交按钮的标题:添加新的客户和客户XYZ Textiles需要提交按钮的标题的保存记录.

我们如何实现呢?

提前谢谢.

Priyanka

Hi,

we have a product in our company which has number of clients. What we currently do if any customer needs change, we change in the code directly and send the changed version to that customer and similarly for rest of the customers.

I need a mechanistic so when any customer demands any changes we just have to do changes in settings of configuration file.

For eg customer ABC Corp needs submit button''s caption : Add new Customer and customer XYZ Textiles needs that submit button''s caption Save Record.

How can we achieve this ?

Thanks in advance.

Priyanka

推荐答案

我认为这里可能存在两种情况:

1.您的客户端数量非常有限:为每个客户端准备/编辑自定义配置文件没什么大不了的:so:

一个.您向该客户端发送了一个文本文件(或任何格式的文件),并告诉他们放置在哪个目录中.在运行时,您的应用会解析该文件,并执行正确的操作来影响用户设置,然后您将其保留. br/>
b.或:您可以使用3rd创建一些简单的在线或离线安装程序.派对软件,或创建自己的软件来安装此配置文件.

2.您拥有大量客户:将自己的资源用于频繁地甚至很少为客户定制产品是不经济的.

一个.因此,您可以创建一个选项"对话框,窗体,选项卡式界面等,让客户输入各种ui项目的标题...最终用户最常要求更改的ui. br/>
讨论:从市场营销的角度来看:您可能会认为这是通过提供可定制的应用升级或提供定制服务(通过订阅?按小时收费?).

我不介意,所以:在不了解有关您的应用程序,其市场细分等许多细节的情况下,这一切都有些模糊.但是,希望它对您有所帮助.
I think there are two scenarios possible here:

1. you have a very limited number of clients: it''s no big deal for you to prepare/edit a custom configuration file for each client: so:

a. you send that client a text-file (or whatever format file), and tell them in what directory to put it in. at run-time your app parses that file and does the right thing to affect user settings which you then persist.

b. or: you create some simple on-line or off-line installer app using 3rd. party software, or creating your own to install this config file.

2. you have a large number of clients: it is not economical for you to devote your own resources to customizing your products frequently, or even rarely, for customers.

a. so you create an ''Options'' dialog, Form, tabbed-interface, whatever, that lets the customer enter their own titles for various ui items ... the ones that are most frequently asked to be changed by end-users.

Discussion: from a marketing point-of-view: you might look at this as an opportunity for you to increase your revenue stream by offering an upgrade to your app which is customizable, or offering customization services (by subscription ? by hourly rate ?).

I''m not psychic, so: without knowing a lot of details about your application, its market niche, etc. this is all somewhat vague. But, hope it''s helpful.


自定义包含这些变体:

1)UI定制(放置,更改的表单布局)
2)逻辑更改(内部流程工作流)
3)数据实体更改(要存储的其他内容)
4)规则更改(通常用于控制工作流程)
5)输出更改(打印差异,输出格式)
6)报告的布局和内容差异

最好的方法是执行以下操作:

1)创建可以动态加载的子系统"模块.

2)为已更改功能但覆盖基本模块Y"的特定客户创建客户X模块Y".

这不是一件容易的事,需要您进行大量重写.
Customizations come in these variations :

1) UI customizations (placements, changed form layouts)
2) Logic changes (internal process workflows)
3) Data Entity changes (different things to store)
4) Rule changes (usually goes to control the workflow processes)
5) Output changes (printing differences, output formats)
6) Report layout and content differences

The best way is to do the following:

1) Create "Sub System" modules which can be loaded dynamically.

2) Create a "Customer X Module Y" for a specific customer which has changed functionality but overrides the "Base Module Y".

This is not an easy undertaking and requires significant rewriting on your part.


这篇关于.NET中基于客户的配置设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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