通用JS函数,用于创建/删除表&独立于数据库抽象层更新行中的数据 [英] Generic JS function to create/Delete table & update data in ROws independent of Database Abstraction Layer

查看:63
本文介绍了通用JS函数,用于创建/删除表&独立于数据库抽象层更新行中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请在下面参阅 详细信息和共享代码已被剪裁以满足以下提到的要求 应用 | | IDAL [Create( ),Read(),update(),delete()] | | DAL SQL或Oracle或SharePoint 示例. 方法 名称: CreateTable( JsonSchema json,函数成功,函数失败) 说明 使用提供的表格创建表格 结构: JsonSchema {"tablename" :[{"column1":"string"},{"column2":"int"},{"columm3": " datetime"}}}
Hi Friends.... I need URGENT help with a generic JS code to provides a mechanism for creating, reading, updating and deleting data. Also, these generic functions should not impact application on changing database technologies. Please refer below details and share code snipped to meet the below mentioned requirement Application | | IDAL [Create(), Read(), update(), delete()] | | DAL SQL OR Oracle OR SharePoint Example. METHOD NAME: CreateTable(JsonSchema json, function success, function failure) Description: Creates a table with the supplied name, and table schema from the JsonSchema. Structures: JsonSchema { "tablename": [ {"column1": "string"}, {"column2": "int"}, {"columm3": "datetime"} ] }

推荐答案

根据您的问题,建议您创建一个SharePoint自定义Web服务,其中包含不同的数据库抽象层和前端的开放接口.然后,您可以使用不同的参数来实现泛型函数以进行检索 相关界面.

According to your question, I suggest that you can create a SharePoint custom web service which contains different database abstraction layers and open interfaces to the front end. Then you can implement generic function with different parameters to retrieve the relevant interface.

更多信息供您参考:

演练:创建自定义Web服务

https://msdn.microsoft.com/en-us/library/ms464040(v = office.12).aspx

如果该问题与SharePoint的开发无关,建议您将其发布到相应的论坛,您将在此获得更多帮助和确定的答案.

If the question not relate to the development of SharePoint, I suggest you post it to the corresponding forum, you will get more help and confirmed answers there.

https://forums.asp.net/

最诚挚的问候,

李刘


这篇关于通用JS函数,用于创建/删除表&独立于数据库抽象层更新行中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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