20078888

技术前线

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

2010年5月7日

摘要: using System;using System.Collections.Generic;using System.IO;using System.Text;using Codes;using CodeUtility;using Model;namespace CodeFactory{ public class CodeAccess { #region BLL public static voi... 阅读全文
posted @ 2010-05-07 17:36 许雪林 阅读(289) 评论(0) 推荐(0)

摘要: using Model; using System; using System.Collections; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Runtime.InteropServices;... 阅读全文
posted @ 2010-05-07 17:35 许雪林 阅读(650) 评论(0) 推荐(0)

摘要: using Model;using System;using System.Text;namespace DBUtility{ public class GetSqlString { public static string GetStoreProcedures() { return "select distinct(name) from sysobjects where type='p' "; ... 阅读全文
posted @ 2010-05-07 17:34 许雪林 阅读(263) 评论(0) 推荐(0)

摘要: using System; using System.IO; using System.Reflection; using System.Runtime.Serialization.Formatters.Binary; using System.Xml;namespace DBUtility{ public class CommonHelper { public static object Des... 阅读全文
posted @ 2010-05-07 17:32 许雪林 阅读(582) 评论(0) 推荐(0)

摘要: using System;using System.Collections.Generic;namespace Model{ public class Table { private List<Field> _fields = new List<Field>(); private string _name; public List<Field> Fields ... 阅读全文
posted @ 2010-05-07 17:29 许雪林 阅读(115) 评论(0) 推荐(0)

摘要: using System;namespace Model{ public class Field { private bool _allownull; private string _defaultvalue; private string _fielddescn; private int _fieldlength; private string _fieldname; private int _... 阅读全文
posted @ 2010-05-07 17:28 许雪林 阅读(196) 评论(0) 推荐(0)

摘要: using System;namespace Model{ public enum DataType { intType, bitType, uniqueidentifierType, datetimeType, MoneyType, ntextType, nvarcharType, varcharType, bigintType, binaryType, charType, decimalTyp... 阅读全文
posted @ 2010-05-07 17:27 许雪林 阅读(169) 评论(0) 推荐(0)

摘要: using System;using System.Collections.Generic;using System.Data.OleDb;using System.Data.SqlClient;namespace Model{ public class Database { private bool _connected; private string _connectionstring; pr... 阅读全文
posted @ 2010-05-07 17:27 许雪林 阅读(120) 评论(0) 推荐(0)

摘要: using System;namespace Model{ public class CreateStyle { private string _createpath; private bool _hascreatebll; private bool _hascreatecachedependencyfactory; private bool _hascreatedal; private bool... 阅读全文
posted @ 2010-05-07 17:26 许雪林 阅读(116) 评论(0) 推荐(0)

摘要: using System;namespace Model //命名空间{ //CodeStyle 类 public class CodeStyle { private string _afternamespace; private string _beforenamespace; private CacheFrames _cacheframe = CacheFrames.Cache; privat... 阅读全文
posted @ 2010-05-07 17:25 许雪林 阅读(121) 评论(0) 推荐(0)

摘要: 引言: 不想多说费话,现在就开始;一:先说代码生成工具体建哪几个项目(以我的为例)CodeFactory //下面有详细说明,在这里不说了Codes //下面有详细说明,在这里不说了CodeUtility //下面有详细说明,在这里不说了DBUtility //下面有详细说明,在这里不说了Model //下面有详细说明,在这里不说了ProjectName//这里是自已定义的项目名以上六项目清楚地表... 阅读全文
posted @ 2010-05-07 17:24 许雪林 阅读(248) 评论(0) 推荐(0)