IronPython中已经可以使用 KeelKit 了,相应功能已实现,将在下一版本中发布!
20090422
此版本有如下更新:
一、 已添加了自动配置UI程序的配置文件中的连接字符串,回自动添加和修改!
二、 此版本支持了IronPython,在您安装 IronPythonStudioIntegrated后,KeelKit 将能直接支持IronPython 的代码生成,但是由于其本身在中文环境下可能运行不好!而且有BUG,因此使用过程中要注意, 而且IronPython 无法生存 控件,因此暂时只能支持Model ,Contrl 表单使用C# 的。
三、修复了一些BUG!优化了一些其他功能!
四、经过测试,已经可以生成IronPython的Model 了!
示例如下:
# 生成日期:20090422015421
class Model: # namespace
import System
import System.Collections.Generic
import System.ComponentModel
import System.Data
import System.Text
import Keel.ORM
from clr import *
class tb_codsoftitem(object):
"""type(__CodFileMd5) == System.String, type(__FullName) == System.String, type(__SoftName) == System.String, type(__Version) == System.String, type(__Size) == System.Int32, type(__Created) == System.DateTime, type(__Score_Good) == System.Int32, type(__Score_Bad) == System.Int32, type(__Money) == System.Int32, type(__UploadDateTime) == System.DateTime, type(__PhoneTypes) == System.String, type(__PhoneOS) == System.String"""
__slots__ = ['__CodFileMd5', '__FullName', '__SoftName', '__Version', '__Size', '__Created', '__Score_Good', '__Score_Bad', '__Money', '__UploadDateTime', '__PhoneTypes', '__PhoneOS']
@accepts(Self())
@returns(System.String)
def get_CodFileMd5(self):
return self.__CodFileMd5
@accepts(Self(), System.String)
def set_CodFileMd5(self, value):
self.__CodFileMd5 = value
CodFileMd5 = property(fget=get_CodFileMd5,fset=set_CodFileMd5)
@accepts(Self())
@returns(System.String)
def get_FullName(self):
return self.__FullName
@accepts(Self(), System.String)
def set_FullName(self, value):
self.__FullName = value
FullName = property(fget=get_FullName,fset=set_FullName)
@accepts(Self())
@returns(System.String)
def get_SoftName(self):
return self.__SoftName
@accepts(Self(), System.String)
def set_SoftName(self, value):
self.__SoftName = value
SoftName = property(fget=get_SoftName,fset=set_SoftName)
@accepts(Self())
@returns(System.String)
def get_Version(self):
return self.__Version
@accepts(Self(), System.String)
def set_Version(self, value):
self.__Version = value
Version = property(fget=get_Version,fset=set_Version)
@accepts(Self())
@returns(System.Int32)
def get_Size(self):
return self.__Size
@accepts(Self(), System.Int32)
def set_Size(self, value):
self.__Size = value
Size = property(fget=get_Size,fset=set_Size)
@accepts(Self())
@returns(System.DateTime)
def get_Created(self):
return self.__Created
@accepts(Self(), System.DateTime)
def set_Created(self, value):
self.__Created = value
Created = property(fget=get_Created,fset=set_Created)
@accepts(Self())
@returns(System.Int32)
def get_Score_Good(self):
return self.__Score_Good
@accepts(Self(), System.Int32)
def set_Score_Good(self, value):
self.__Score_Good = value
Score_Good = property(fget=get_Score_Good,fset=set_Score_Good)
@accepts(Self())
@returns(System.Int32)
def get_Score_Bad(self):
return self.__Score_Bad
@accepts(Self(), System.Int32)
def set_Score_Bad(self, value):
self.__Score_Bad = value
Score_Bad = property(fget=get_Score_Bad,fset=set_Score_Bad)
@accepts(Self())
@returns(System.Int32)
def get_Money(self):
return self.__Money
@accepts(Self(), System.Int32)
def set_Money(self, value):
self.__Money = value
Money = property(fget=get_Money,fset=set_Money)
@accepts(Self())
@returns(System.DateTime)
def get_UploadDateTime(self):
return self.__UploadDateTime
@accepts(Self(), System.DateTime)
def set_UploadDateTime(self, value):
self.__UploadDateTime = value
UploadDateTime = property(fget=get_UploadDateTime,fset=set_UploadDateTime)
@accepts(Self())
@returns(System.String)
def get_PhoneTypes(self):
return self.__PhoneTypes
@accepts(Self(), System.String)
def set_PhoneTypes(self, value):
self.__PhoneTypes = value
PhoneTypes = property(fget=get_PhoneTypes,fset=set_PhoneTypes)
@accepts(Self())
@returns(System.String)
def get_PhoneOS(self):
return self.__PhoneOS
@accepts(Self(), System.String)
def set_PhoneOS(self, value):
self.__PhoneOS = value
PhoneOS = property(fget=get_PhoneOS,fset=set_PhoneOS)
class Model: # namespace
import System
import System.Collections.Generic
import System.ComponentModel
import System.Data
import System.Text
import Keel.ORM
from clr import *
class tb_codsoftitem(object):
"""type(__CodFileMd5) == System.String, type(__FullName) == System.String, type(__SoftName) == System.String, type(__Version) == System.String, type(__Size) == System.Int32, type(__Created) == System.DateTime, type(__Score_Good) == System.Int32, type(__Score_Bad) == System.Int32, type(__Money) == System.Int32, type(__UploadDateTime) == System.DateTime, type(__PhoneTypes) == System.String, type(__PhoneOS) == System.String"""
__slots__ = ['__CodFileMd5', '__FullName', '__SoftName', '__Version', '__Size', '__Created', '__Score_Good', '__Score_Bad', '__Money', '__UploadDateTime', '__PhoneTypes', '__PhoneOS']
@accepts(Self())
@returns(System.String)
def get_CodFileMd5(self):
return self.__CodFileMd5
@accepts(Self(), System.String)
def set_CodFileMd5(self, value):
self.__CodFileMd5 = value
CodFileMd5 = property(fget=get_CodFileMd5,fset=set_CodFileMd5)
@accepts(Self())
@returns(System.String)
def get_FullName(self):
return self.__FullName
@accepts(Self(), System.String)
def set_FullName(self, value):
self.__FullName = value
FullName = property(fget=get_FullName,fset=set_FullName)
@accepts(Self())
@returns(System.String)
def get_SoftName(self):
return self.__SoftName
@accepts(Self(), System.String)
def set_SoftName(self, value):
self.__SoftName = value
SoftName = property(fget=get_SoftName,fset=set_SoftName)
@accepts(Self())
@returns(System.String)
def get_Version(self):
return self.__Version
@accepts(Self(), System.String)
def set_Version(self, value):
self.__Version = value
Version = property(fget=get_Version,fset=set_Version)
@accepts(Self())
@returns(System.Int32)
def get_Size(self):
return self.__Size
@accepts(Self(), System.Int32)
def set_Size(self, value):
self.__Size = value
Size = property(fget=get_Size,fset=set_Size)
@accepts(Self())
@returns(System.DateTime)
def get_Created(self):
return self.__Created
@accepts(Self(), System.DateTime)
def set_Created(self, value):
self.__Created = value
Created = property(fget=get_Created,fset=set_Created)
@accepts(Self())
@returns(System.Int32)
def get_Score_Good(self):
return self.__Score_Good
@accepts(Self(), System.Int32)
def set_Score_Good(self, value):
self.__Score_Good = value
Score_Good = property(fget=get_Score_Good,fset=set_Score_Good)
@accepts(Self())
@returns(System.Int32)
def get_Score_Bad(self):
return self.__Score_Bad
@accepts(Self(), System.Int32)
def set_Score_Bad(self, value):
self.__Score_Bad = value
Score_Bad = property(fget=get_Score_Bad,fset=set_Score_Bad)
@accepts(Self())
@returns(System.Int32)
def get_Money(self):
return self.__Money
@accepts(Self(), System.Int32)
def set_Money(self, value):
self.__Money = value
Money = property(fget=get_Money,fset=set_Money)
@accepts(Self())
@returns(System.DateTime)
def get_UploadDateTime(self):
return self.__UploadDateTime
@accepts(Self(), System.DateTime)
def set_UploadDateTime(self, value):
self.__UploadDateTime = value
UploadDateTime = property(fget=get_UploadDateTime,fset=set_UploadDateTime)
@accepts(Self())
@returns(System.String)
def get_PhoneTypes(self):
return self.__PhoneTypes
@accepts(Self(), System.String)
def set_PhoneTypes(self, value):
self.__PhoneTypes = value
PhoneTypes = property(fget=get_PhoneTypes,fset=set_PhoneTypes)
@accepts(Self())
@returns(System.String)
def get_PhoneOS(self):
return self.__PhoneOS
@accepts(Self(), System.String)
def set_PhoneOS(self, value):
self.__PhoneOS = value
PhoneOS = property(fget=get_PhoneOS,fset=set_PhoneOS)
# 生成日期:20090422015421
class Model: # namespace
import System
import System.Collections.Generic
import System.ComponentModel
import System.Data
import System.Text
import Keel.ORM
from clr import *
class tb_user(object):
"""type(__username) == System.String, type(__password) == System.String, type(__phonetype) == System.String, type(__email) == System.String"""
__slots__ = ['__username', '__password', '__phonetype', '__email']
# <summary>
# 用户名
# </summary>
# <summary>
# 密码
# </summary>
# <summary>
# 手机类型
# </summary>
# <summary>
# 电邮
# </summary>
# <summary>
# 用户名
# </summary>
@accepts(Self())
@returns(System.String)
def get_username(self):
return self.__username
@accepts(Self(), System.String)
def set_username(self, value):
self.__username = value
username = property(fget=get_username,fset=set_username,fdoc="""<summary>
用户名
</summary>
""")
# <summary>
# 密码
# </summary>
@accepts(Self())
@returns(System.String)
def get_password(self):
return self.__password
@accepts(Self(), System.String)
def set_password(self, value):
self.__password = value
password = property(fget=get_password,fset=set_password,fdoc="""<summary>
密码
</summary>
""")
# <summary>
# 手机类型
# </summary>
@accepts(Self())
@returns(System.String)
def get_phonetype(self):
return self.__phonetype
@accepts(Self(), System.String)
def set_phonetype(self, value):
self.__phonetype = value
phonetype = property(fget=get_phonetype,fset=set_phonetype,fdoc="""<summary>
手机类型
</summary>
""")
# <summary>
# 电邮
# </summary>
@accepts(Self())
@returns(System.String)
def get_email(self):
return self.__email
@accepts(Self(), System.String)
def set_email(self, value):
self.__email = value
email = property(fget=get_email,fset=set_email,fdoc="""<summary>
电邮
</summary>
""")
class Model: # namespace
import System
import System.Collections.Generic
import System.ComponentModel
import System.Data
import System.Text
import Keel.ORM
from clr import *
class tb_user(object):
"""type(__username) == System.String, type(__password) == System.String, type(__phonetype) == System.String, type(__email) == System.String"""
__slots__ = ['__username', '__password', '__phonetype', '__email']
# <summary>
# 用户名
# </summary>
# <summary>
# 密码
# </summary>
# <summary>
# 手机类型
# </summary>
# <summary>
# 电邮
# </summary>
# <summary>
# 用户名
# </summary>
@accepts(Self())
@returns(System.String)
def get_username(self):
return self.__username
@accepts(Self(), System.String)
def set_username(self, value):
self.__username = value
username = property(fget=get_username,fset=set_username,fdoc="""<summary>
用户名
</summary>
""")
# <summary>
# 密码
# </summary>
@accepts(Self())
@returns(System.String)
def get_password(self):
return self.__password
@accepts(Self(), System.String)
def set_password(self, value):
self.__password = value
password = property(fget=get_password,fset=set_password,fdoc="""<summary>
密码
</summary>
""")
# <summary>
# 手机类型
# </summary>
@accepts(Self())
@returns(System.String)
def get_phonetype(self):
return self.__phonetype
@accepts(Self(), System.String)
def set_phonetype(self, value):
self.__phonetype = value
phonetype = property(fget=get_phonetype,fset=set_phonetype,fdoc="""<summary>
手机类型
</summary>
""")
# <summary>
# 电邮
# </summary>
@accepts(Self())
@returns(System.String)
def get_email(self):
return self.__email
@accepts(Self(), System.String)
def set_email(self, value):
self.__email = value
email = property(fget=get_email,fset=set_email,fdoc="""<summary>
电邮
</summary>
""")
最后附上IronPython的例子!
/Files/KeelKit/IronPythonDemo.rar
KeelKit 一款国产ORM工具,自动生成Model、自动生成表单、自动生成单元测试框架、自动生成存储过程访问接口、自动配置连接字符串,代码行数统计、程序集版本号码控制、源码HTML生成、自动生成表结构Word文档、自动支持各种.Net项目,如F# 和IronPython ,自动生成与其它语言交换的Model、使用了泛型的DBHelper、查询语句强类型化、支持事务、无语言界限、无数据库界限!