不写一行代码,实现单表增删改查(附demo)
发布日期:2021-05-09 04:22:21 浏览次数:15 分类:博客文章

本文共 3885 字,大约阅读时间需要 12 分钟。

   ��������������������� ������������������������������������������������������������������������������������������������������demo������������������������������������������������demo���������������������������������������������������������������,sql������������������������������������������������������������������������������������������

   demo���������������������

 

  crud������������������������commonAdd.aspx(���������),commonEdit.aspx(���������������),commonQuery.aspx(���������),���������������������������config.xml

,config.xml���������������������������������������������������app_code/t_column.cs������xml������������������������������������������������������������������������������������������������

     ���������������app_data���������������������

   ���������demo������������������

   1.������������������(���������������������������������)

������xml

 

 1 
<?
xml version="1.0" encoding="utf-8" 
?>
 2 
<
root
>
 3 
  
<
table 
id
="1"
 key
="id"
 name
="t_demo"
 cnname
="������������"
 order
="addtime desc"
>
 4 
    
<
column 
name
="id"
 cnname
="������"
 ftable
=""
 fvalue
=""
 ftext
=""
 isfilter
="n"
 visible
="y"
 allownull
="n"
 regex
=""
 tip
=""
 type
="key"
></
column
>
 5 
    
<
column 
name
="������"
 cnname
="������"
 ftable
=""
 fvalue
=""
 ftext
=""
 isfilter
="y"
 visible
="y"
 allownull
="n"
 regex
=""
 tip
="���������������������!"
 type
="textbox"
></
column
>
 6 
    
<
column 
name
="������"
 cnname
="������"
 ftable
="t_sex"
 fvalue
="id"
 ftext
="name"
 isfilter
="n"
 visible
="y"
 allownull
="n"
 regex
=""
 tip
=""
 type
="dropdownlist"
></
column
>
 7 
    
<
column 
name
="������"
 cnname
="������"
 ftable
=""
 fvalue
=""
 ftext
=""
 isfilter
="n"
 visible
="y"
 allownull
="n"
 regex
="^\d+$"
 tip
=""
 type
="textbox"
></
column
>
 8 
    
<
column 
name
="������������"
 cnname
="������������"
 ftable
=""
 fvalue
=""
 ftext
=""
 isfilter
="n"
 visible
="n"
 allownull
="y"
 regex
="^\d{4}-\d{1,2}-\d{1,2}$"
 tip
=""
 type
="textbox"
></
column
>
 9 
    
<
column 
name
="������������"
 cnname
="������������"
 ftable
=""
 fvalue
=""
 ftext
=""
 isfilter
="n"
 visible
="y"
 allownull
="y"
 regex
=""
 tip
=""
 type
="mtextbox"
></
column
>
10 
    
<
column 
name
="������������"
 cnname
="������������"
 ftable
=""
 fvalue
=""
 ftext
=""
 isfilter
="n"
 visible
="y"
 allownull
="y"
 regex
=""
 tip
=""
 type
="mtextbox"
></
column
>
11 
    
<
column 
name
="������"
 cnname
="������"
 ftable
=""
 fvalue
=""
 ftext
=""
 isfilter
="n"
 visible
="y"
 allownull
="y"
 regex
=""
 tip
=""
 type
="textbox"
></
column
>
12 
    
<
column 
name
="������"
 cnname
="������"
 ftable
=""
 fvalue
=""
 ftext
=""
 isfilter
="n"
 visible
="y"
 allownull
="y"
 regex
=""
 tip
=""
 type
="textbox"
></
column
>
13 
    
<
column 
name
="���"
 cnname
="���"
 ftable
=""
 fvalue
=""
 ftext
=""
 isfilter
="n"
 visible
="y"
 allownull
="y"
 regex
=""
 tip
=""
 type
="textbox"
></
column
>
14 
    
<
column 
name
="���"
 cnname
="���"
 ftable
=""
 fvalue
=""
 ftext
=""
 isfilter
="n"
 visible
="y"
 allownull
="y"
 regex
=""
 tip
=""
 type
="textbox"
></
column
>
15 
    
<
column 
name
="������������"
 cnname
="������������"
 ftable
=""
 fvalue
=""
 ftext
=""
 isfilter
="n"
 visible
="y"
 allownull
="y"
 regex
=""
 tip
=""
 type
="textbox"
></
column
>
16 
    
<
column 
name
="������������"
 cnname
="������������"
 ftable
=""
 fvalue
=""
 ftext
=""
 isfilter
="n"
 visible
="y"
 allownull
="y"
 regex
=""
 tip
=""
 type
="mtextbox"
></
column
>
17 
    
<
column 
name
="qq"
 cnname
="qq"
 ftable
=""
 fvalue
=""
 ftext
=""
 isfilter
="n"
 visible
="y"
 allownull
="y"
 regex
=""
 tip
=""
 type
="textbox"
></
column
>
18 
    
<
column 
name
="msn"
 cnname
="msn"
 ftable
=""
 fvalue
=""
 ftext
=""
 isfilter
="n"
 visible
="y"
 allownull
="y"
 regex
=""
 tip
=""
 type
="textbox"
></
column
>
19 
    
<
column 
name
="addtime"
 cnname
="������"
 ftable
=""
 fvalue
=""
 ftext
=""
 isfilter
="n"
 visible
="y"
 allownull
="n"
 regex
=""
 tip
=""
 type
="autodatetime"
></
column
>
20 
  
</
table
>
21 
</
root
>

 

 

������default.aspx,���������������commonquery.aspx?id=1

 

 

������������������

 

 

������������������

 

 

������������������

 

 

������������������

 

 

 

 

 

上一篇:C#实现简单的JSON序列化
下一篇:零代码配置xml维护单表

发表评论

最新留言

很好
[***.229.124.182]2025年04月22日 17时39分31秒