|
ClassGenerator(ORM生成器)下载
ClassGenerator(ORM生成器)下载ClassGenerator(类生成器)下载. ClassGenerator用于生成实体类模型(ORM模型).
可以生成两种ORM模型: 1. 生成表结构静态类 2. 生成实体类(ORM) ![]() 1. 生成表结构静态类 using System; using System.Collections.Generic; using System.Text; using System.Data; using CSFramework.ORM; namespace CSFramework3.Models { ///<summary> /// ORM模型, 数据表:Customer,由ClassGenerator自动生成 /// </summary> [ORM_ObjectClassAttribute("Customer", "CustomerCode", true)] public sealed class tb_Customer { public static string __TableName ="Customer"; public static string __KeyName = "CustomerCode"; [ORM_FieldAttribute(SqlDbType.NVarChar,100,false,true,true,false,false)] public static string CustomerCode = "CustomerCode"; [ORM_FieldAttribute(SqlDbType.NVarChar,400,false,true,false,false,false)] public static string CustomerName = "CustomerName"; [ORM_FieldAttribute(SqlDbType.NVarChar,400,false,true,false,false,false)] public static string Address = "Address"; [ORM_FieldAttribute(SqlDbType.NVarChar,100,false,true,false,false,false)] public static string Tel = "Tel"; [ORM_FieldAttribute(SqlDbType.NVarChar,100,false,true,false,false,false)] public static string Fax = "Fax"; } } // 来源:www.CSFramework.com, C/S结构框架学习网 2. 生成实体类(ORM) using System; using System.Collections.Generic; using System.Text; using System.Data; using CSFramework.ORM; namespace CSFramework3.Models { ///<summary> /// ORM模型, 数据表:Customer,由ClassGenerator自动生成 /// </summary> [ORM_ObjectClassAttribute("Customer", "CustomerCode", true)] public sealed class tb_Customer { #region 所有字段的局部变量定义 private string F_CustomerCode; private string F_CustomerName; private string F_Address; private string F_Tel; private string F_Fax; #endregion public static string __TableName ="Customer"; public static string __KeyName = "CustomerCode"; #region 所有字段名常量 public const string _CustomerCode = "CustomerCode"; public const string _CustomerName = "CustomerName"; public const string _Address = "Address"; public const string _Tel = "Tel"; public const string _Fax = "Fax"; #endregion #region 所有字段属性 [ORM_FieldAttribute(SqlDbType.NVarChar,100,false,true,true,false,false)] public string CustomerCode{get{return F_CustomerCode;}set{F_CustomerCode=value;}} [ORM_FieldAttribute(SqlDbType.NVarChar,400,false,true,false,false,false)] public string CustomerName{get{return F_CustomerName;}set{F_CustomerName=value;}} [ORM_FieldAttribute(SqlDbType.NVarChar,400,false,true,false,false,false)] public string Address{get{return F_Address;}set{F_Address=value;}} [ORM_FieldAttribute(SqlDbType.NVarChar,100,false,true,false,false,false)] public string Tel{get{return F_Tel;}set{F_Tel=value;}} [ORM_FieldAttribute(SqlDbType.NVarChar,100,false,true,false,false,false)] public string Fax{get{return F_Fax;}set{F_Fax=value;}} #endregion } } // 来源:www.CSFramework.com, C/S结构框架学习网 解决方案: ![]() (仅限vip会员下载) 请QQ联系
参考文档:
Winform快速开发框架平台代码生成器核心优势 C/S架构的Winform 代码生成器软件|C/S框架网原创作品 推荐基于C/S架构的软件开发工具(Winform+C#语言+ADO.NET+代码生成器) 源码生成器(ClassGenerator)修改一处Bug 《CS框架代码生成器ClassGeneratorV2.01使用指南》.doc SQL命令生成器:GenerateSqlCmdByTableFields,GenerateSqlCmdByObjectClass 系统模块的字段名管理与代码生成器的字段名管理 C/S软件系统开发框架代码生成器功能升级V5.1 C/S开发框架代码生成器工具增加DevExpress版本配置
其它资料:
什么是C/S结构? | C/S框架核心组成部分 | C/S框架-WebService部署图 | C/S框架-权限管理 | C/S结构系统框架 - 3.0高级版介绍 | C/S结构系统框架 - 功能介绍 | C/S结构系统框架 - 产品列表 | C/S结构系统框架 - 应用展示(图) | |
|