数据库表映射Delphi类的一个小程序

实现数据库自动映射Delphi类

生成添,删, 改,查,方法

支持数据库直接导入

例子:

{@Powered By:Table2Class @Author:xwk @Date:2006-12-18 11:47:26}

 

unit TBoard_eZ32;

 

interface

 

uses

    Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,

    ADODB, DB, Contnrs;

 

type

 

  {TTBoard_eZ32}

 

    TTBoard_eZ32 = class(TObject)

    private

        FConnection: TADOConnection;

        FId: Integer;

        FBoardId: Integer;

        FSendInitDynamicMsg: string;

        FParamByDefault: string;

        FProtocoltypeforCLIP: string;

    public

        property Connection: TADOConnection read FConnection write FConnection;

        property Id: Integer read FId write FId;

        property BoardId: Integer read FBoardId write FBoardId;

        property SendInitDynamicMsg: string read FSendInitDynamicMsg write FSendInitDynamicMsg;

        property ParamByDefault: string read FParamByDefault write FParamByDefault;

        property ProtocoltypeforCLIP: string read FProtocoltypeforCLIP write FProtocoltypeforCLIP;

        function Get(Condition: string = ''): Boolean;

        procedure Add;

        procedure Update(Condition: string = '');

        procedure Delete(Condition: string = '');

        constructor Create;

        destructor Destroy; override;

        procedure Clone(Obj: TTBoard_eZ32; CreateIt: Boolean = False);

    end;

 

  ............

end.

生成的代码采用了网上一个类似的软件的风格,觉得他写的挺好所以我就不自己写了

下载

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值