我如何创建执行从所有页面调用的基本(创建,读取,更新和删除)操作的通用函数. [英] How i can Create generic functions that perform basic (Create, Read, Update, and Delete) operations that are called from all pages.

查看:59
本文介绍了我如何创建执行从所有页面调用的基本(创建,读取,更新和删除)操作的通用函数.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何创建执行从所有页面调用的基本CRUD(创建,读取,更新和删除)操作的通用函数.

How i can Create generic functions that perform basic CRUD (Create, Read, Update, and Delete) operations that are called from all pages.

推荐答案

执行一些操作读数据访问层(DAL)会寻找一个简单的方法,因为其中一些是过度设计的. CP上有很多.这个问题将导致您将要使用的设计和编码标准的主要讨论!

开始使用存储过程或字符串之前,您需要做出一些基本决定.我使用存储的proc和代码生成器来创建它们.
Do some reading into Data Access Layer (DAL) look for a simple one as some of them are over engineered. there are a number of them here on CP. This question will lead into a major discussion into the design and coding standards you are going to use!

You need to make some basic decisions before you begin, are you going to use stored procedures or strings. I use stored procs and a code generator to create them.


这篇关于我如何创建执行从所有页面调用的基本(创建,读取,更新和删除)操作的通用函数.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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