简体   繁体   English

通用插入存储过程

[英]Generic Insert Stored Procedure

我已经在C#中创建了用于数据库插入的通用插入代码(用于文本日期编号等数据类型,而不是用于所有数据类型),现在我打算在oracle中编写通用插入存储过程。我的问题是“我们可以用编程做点什么我们也无法对通用插入语句的存储过程使用C#或JAVA这样的语言”,也请建议是否有人已经这样做。

Please stop. 请住手。 This is a solved problem. 这是一个已解决的问题。 There's plenty of tools available that will do what you want and much more, and in a more elegant way. 有很多可用的工具可以以更优雅的方式满足您的需求。

For example, have a look at ORM tools like (N)Hibernate or Entity Framework , there are many others. 例如,看一下(N)HibernateEntity Framework等ORM工具,还有很多其他工具。 There are also more light-weight options such as Simple.Data , Massive , dapper-dot-net , ... 还有更多轻量级的选项,例如Simple.DataMassivedapper-dot-net ,...

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

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