ClassGenerator V2.01 生成的ORM源码


  ClassGenerator V2.01 生成的ORM源码
ClassGenerator V2.01 生成的ORM源码



ClassGenerator V2.01 生成的ORM源码


具体操作请参考:《CS框架代码生成器ClassGeneratorV2.01使用指南》.doc




C# Code:

using System;

using System.Collections.Generic;

using System.Text;

using System.Data;

using CSFramework.ORM;

 

/*==========================================

 *   程序说明: tb_Customer的业务逻辑层

 *   作者姓名: Your Name

 *   创建日期: 2011-03-24 03:05:54

 *   最后修改: 2011-03-24 03:05:54

 *  

 *   : 本代码由ClassGenerator自动生成

 *==========================================*/

 

namespace CSFramework3.Models

{

    [ORM_ObjectClassAttribute("tb_Customer", "CustomerCode", true)]

    public class tb_Customer

    {

        public static string __TableName = "tb_Customer";

 

        public static string __KeyName = "CustomerCode";

 

        [ORM_FieldAttribute(SqlDbType.Int,4,false,false,false,false,false)]

        public static string ISID = "ISID";

 

        [ORM_FieldAttribute(SqlDbType.VarChar,20,false,true,true,false,false)]

        public static string CustomerCode = "CustomerCode";

 

        [ORM_FieldAttribute(SqlDbType.NVarChar,200,false,true,false,false,false)]

        public static string NativeName = "NativeName";

 

        [ORM_FieldAttribute(SqlDbType.VarChar,100,false,true,false,false,false)]

        public static string EnglishName = "EnglishName";

 

        [ORM_FieldAttribute(SqlDbType.VarChar,50,false,true,false,false,false)]

        public static string AttributeCodes = "AttributeCodes";

 

        [ORM_FieldAttribute(SqlDbType.NVarChar,100,false,true,false,false,false)]

        public static string Address1 = "Address1";

 

        [ORM_FieldAttribute(SqlDbType.NVarChar,100,false,true,false,false,false)]

        public static string Address2 = "Address2";

 

        [ORM_FieldAttribute(SqlDbType.NVarChar,100,false,true,false,false,false)]

        public static string Address3 = "Address3";

 

        [ORM_FieldAttribute(SqlDbType.NVarChar,40,false,true,false,false,false)]

        public static string Country = "Country";

 

        [ORM_FieldAttribute(SqlDbType.NVarChar,40,false,true,false,false,false)]

        public static string Region = "Region";

 

        [ORM_FieldAttribute(SqlDbType.NVarChar,40,false,true,false,false,false)]

        public static string City = "City";

 

        [ORM_FieldAttribute(SqlDbType.NVarChar,12,false,true,false,false,false)]

        public static string CountryCode = "CountryCode";

 

        [ORM_FieldAttribute(SqlDbType.VarChar,6,false,true,false,false,false)]

        public static string CityCode = "CityCode";

 

        [ORM_FieldAttribute(SqlDbType.VarChar,20,false,true,false,false,false)]

        public static string Tel = "Tel";

 

        [ORM_FieldAttribute(SqlDbType.VarChar,20,false,true,false,false,false)]

        public static string Fax = "Fax";

 

        [ORM_FieldAttribute(SqlDbType.VarChar,20,false,true,false,false,false)]

        public static string PostalCode = "PostalCode";

 

        [ORM_FieldAttribute(SqlDbType.VarChar,20,false,true,false,false,false)]

        public static string ZipCode = "ZipCode";

 

        [ORM_FieldAttribute(SqlDbType.VarChar,200,false,true,false,false,false)]

        public static string WebAddress = "WebAddress";

 

        [ORM_FieldAttribute(SqlDbType.NVarChar,400,false,true,false,false,false)]

        public static string Email = "Email";

 

        [ORM_FieldAttribute(SqlDbType.NVarChar,40,false,true,false,false,false)]

        public static string Bank = "Bank";

 

        [ORM_FieldAttribute(SqlDbType.VarChar,50,false,true,false,false,false)]

        public static string BankAccount = "BankAccount";

 

        [ORM_FieldAttribute(SqlDbType.NVarChar,100,false,true,false,false,false)]

        public static string BankAddress = "BankAddress";

 

        [ORM_FieldAttribute(SqlDbType.NVarChar,40,false,true,false,false,false)]

        public static string ContactPerson = "ContactPerson";

 

        [ORM_FieldAttribute(SqlDbType.NVarChar,400,false,true,false,false,false)]

        public static string Remark = "Remark";

 

        [ORM_FieldAttribute(SqlDbType.VarChar, 10, false, true, false, false, false)]

        public static string InUse = "InUse";

 

        [ORM_FieldAttribute(SqlDbType.Int,4,false,true,false,false,false)]

        public static string PaymentTerm = "PaymentTerm";

 

        [ORM_FieldAttribute(SqlDbType.DateTime,8,false,true,false,false,false)]

        public static string CreationDate = "CreationDate";

 

        [ORM_FieldAttribute(SqlDbType.VarChar,50,false,true,false,false,false)]

        public static string CreatedBy = "CreatedBy";

 

        [ORM_FieldAttribute(SqlDbType.DateTime,8,false,true,false,false,false)]

        public static string LastUpdateDate = "LastUpdateDate";

 

        [ORM_FieldAttribute(SqlDbType.VarChar,50,false,true,false,false,false)]

        public static string LastUpdatedBy = "LastUpdatedBy";

 

    }

}






C/S框架网|原创精神.创造价值.打造精品


扫一扫加作者微信
C/S框架网作者微信 C/S框架网|原创作品.质量保障.竭诚为您服务

版权声明:本文为开发框架文库发布内容,转载请附上原文出处连接
C/S框架网
上一篇:开发框架有业务的Demo吗?比如从采购订单到采购入库的简单业务
下一篇:ClassGenerator V2.01 生成的BLL源码
评论列表

发表评论

评论内容
昵称:
关联文章

ClassGenerator V2.01 生成ORM
ClassGenerator V2.01 生成DAL
ClassGenerator V2.01 生成BLL
ClassGenerator(ORM生成器)下载
生成器(ClassGenerator)修改一处Bug
代码生成器 CodeGenerator - 生成ORM
CSFramework代码生成器生成三种ORM模型类(静态类ORM,实体类ORM,标准对象)
C# CodeHighlighter生成高亮着色HTML格式化
V2.2, V3.0 版本tb_SOORM定义有误
CS系统快速开发框架 - 生成主从表ORM
CSFramework.CodeGeneratorV6.0-生成
表单上实现增删改查,除了生成BLL,DAL和ORM表,还需要处理什么?
VS编译生成解决方案失败,但是检查完全正常奇异现象
CSFramework.CodeGeneratorV6.0-生成实体类ORM
生成窗体Form集成到VS解决方案 - C/S框架三层架构代码生成器操作指南
CS开发框架客户端可以自动生成吗?
软件开发与设计 - MIS-管理信息系统-仿点点网轻博客系统 v1.2
C# 格式化CodeHighlighter生成SQL脚本高亮着色(CSFramework.com原创)
C#.NET iTextSharp生成PDF文件大全(生成表格、透明水印,页脚页眉页码等)
基础版V2.0与标准版V2.2有什么区别?

热门标签