简体   繁体   English

使用C#在sharepoint数据库中创建表

[英]Create a table in the sharepoint database using C#

如何使用共享点库从c#在共享点数据库中创建新表。

It is not recomended to edit the sharepoint database. 建议不要编辑共享点数据库。 You can use the sharepoint list as a storage repository or create a new database and use it along with a custom webpart. 您可以将共享点列表用作存储库或创建新数据库,并将其与自定义Webpart一起使用。

What is the need for a new table? 需要一张新桌子吗?

You can create your own database and store data inside there. 您可以创建自己的数据库并将数据存储在其中。 You can use web.config (See SPWebConfigModification class) to store your connection string But do not interact with SharePoint database in a direct way, unless you want problems. 您可以使用web.config(请参阅SPWebConfigModification类)来存储您的连接字符串,但不要直接与SharePoint数据库进行交互,除非您遇到问题。

Maybe you need SLAM! 也许您需要SLAM! (SharePoint List Association Manager) or maybe you choose path of creating your own database (SharePoint列表关联管理器),或者您可以选择创建自己的数据库的路径

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

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