MyGenerator.cs
(开头部分) 61KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*
* 简单三次代码生成器
* 制作:艾新草
* 时间:2013-10-10
* 版权问题,请保留该信息
* */
//www.51aspx.com
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Data.SqlClient;
using System.Threading;
//www.51aspx.com
namespace sql
{
public partial class MyGenerator : Form
{
string connectstring; //数据库连接字符串
SqlConnection cn; //数据库连接对象
List<ProcedureInfo> list = new List<ProcedureInfo>(); //表对象
public List<string> Allli = new List<string>(); //所有表
public List<string> li = new List<string>(); //所关联的表
string path = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); //默认桌面路径
string userId = ""; //用户名
string password = ""; //密码
string database = "master";//数据库
string Id; //Id
FileInfo file = null; //文件流
StreamWriter writer = null; //写入流
string inserString = ""; //存储过程字符串
string dalString = ""; //DAL字符串
string bllString = ""; //Bll字符串
string table = ""; //当前表名
int i = 0; //定义一个循环变量
public MyMethod myMethod = null;
public MyGenerator()
{
InitializeComponent();
}
private void Form3_Load(object sender, EventArgs e)
{
myMethod = new MyMethod();
myMethod.MyAdd1 = true;
myMethod.MyAddReturnId1 = true;
myMethod.MyChange1 = true;
myMethod.MyDelete1 = true;
myMethod.MySelectAll1 = true;
myMethod.MySelectById1 = true;
myMethod.MySelectByWhere1 = true;
}
#region 连接测试
后面还有 1476 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。