简体   繁体   English

SQL数据库映射和其他数据检索源

[英]SQL Database mapping and other data retrieval sources

I have an engineering application developed in c# and I need the following component/tool. 我有一个用c#开发的工程应用程序,需要以下组件/工具。

My application for each of its calculation cycles should read a set of parameters as input. 我的应用程序的每个计算周期都应读取一组参数作为输入。 Some of the potential customers keep those input parameters in excel files, others in sql databases and others in forms (paper or digital) or even other not known yet. 一些潜在客户将这些输入参数保存在excel文件中,其他一些则保存在sql数据库中,而其他一些则以表格(纸质或数字形式)甚至其他未知形式保存。

So, for each deployment, I need to customize the "input reader" module to comply with a specific requirement and at best I may be able to reuse some code. 因此,对于每个部署,我需要自定义“输入读取器”模块以符合特定要求,并且充其量我可能能够重用一些代码。 I need a module like an sql mapper tool to be integrated in my application so I will be able to construct a specification set (using eg. sql or QBE) to gather data from sources like sql, excel files or other and map them to my own internal dataset for the input parameters. 我需要一个像sql映射器工具这样的模块集成到我的应用程序中,因此我将能够构造一个规范集(使用sql或QBE)来从sql,excel文件或其他来源收集数据并将其映射到我的自己的内部数据集作为输入参数。

Thanks in advance for your time and support. 在此先感谢您的时间和支持。

Regards, semag 问候,semag

You may be able to get away with using an ODBC connection, which would allow you to use stock ado.net (and by extension, an ORM of your choice) top of your specific datastore. 您可能可以使用ODBC连接摆脱困境,这将使您可以在特定数据存储区的顶部使用stock ado.net(以及扩展名,您可以选择一个ORM)。

Check out https://msdn.microsoft.com/en-us/library/aa984313%28v=vs.71%29.aspx 查看https://msdn.microsoft.com/en-us/library/aa984313%28v=vs.71%29.aspx

With respect to being able to cope with any specific implementation, it sounds like you may want to check out the strategy pattern to split any implementation-specific parsing into its own component. 关于能够处理任何特定的实现,听起来您可能想检查一下策略模式,以将任何特定于实现的分析拆分为自己的组件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM