SPL_Robot

所属分类:C#编程
开发工具:C#
文件大小:152KB
下载次数:9
上传日期:2010-01-19 17:30:10
上 传 者AaronChen
说明:  SPL_Robot是配合SmartPersistenceLayer使用的一个XML数据库框架的代码生成工具。 SmartPersistenceLayer(SPL)是.NET系统框架持久层。强调是框架带来的灵活性与扩展性。 一、 引用 SPL的发布形式是一个名为PersistenceLayer.Dll的DLL文件,可以在我的BLOG上下载目前最新版:SmartPersistenceLayer3.2,因此只需要在项目中“添加引用”即可: 若要使用ODP.NET连接Oracle数据库,则用以上方式添加Oracle.DataAccess.dll 若要使用SPL连接MySql数据库,则用以上方式添加MySql.Data.dll 二、 配置文件与实体类 SPL的配置文件与实体类可以使用我提供的SmartRobot进行生成(SPL_Robot已经公开源码,请看这里),这可以大大加快开发效率,但工具毕竟是工具,不属于SPL持久层的必选部分。 连接数据库: 目前SmartRobot支持Ms Sql Server、Ms Access、Oracle数据库,如果是其他数据库只能只好手写实体类了或者等我升级喽 ) 确定好要生成的实体类存放的地址,到时生成时会生成到相应的目录里。 配置每个表对应的实体类属性,默认实体类名称为“表名”加“Entity”字符,属性名默认与列名相同,上图中的“2”“3”操作对每个表都要
( <database name="Northwind" type="MsSqlServer"> <parameter name="Provider" value="SQLOLEDB.1" /> <parameter name="Password" value="tintown" /> <parameter name="Initial Catalog" value="Northwind" /> <parameter name="User ID" value="sa" /> <parameter name="Data Source" value="(local)" /> <classMapFile path="ClassMap.xml" /> </database> Ms Access例如下: <database name="DMBCN" type="MsAccess"> <parameter name="Provider" value="Microsoft.Jet.OLEDB.4.0" /> <parameter name="Data Source" value="dmbcn.mdb" /> <classMapFile path="ClassMap.xml" /> </database>)

文件列表:
Robot.sln.old (906, 2003-10-28)
Robot.suo (19456, 2007-10-17)
UpgradeLog.XML (7687, 2007-10-16)
VersionUpdate.txt (312, 2006-01-09)
XmlRobot.cs (28697, 2007-10-16)
XmlRobot.resx (28203, 2007-10-16)
bin\Debug\code\ClassMap.config (2845, 2009-11-24)
bin\Debug\code\TMCS106Entity.cs (20242, 2009-11-24)
bin\Debug\DatabaseMap.config (446, 2009-11-24)
bin\Debug\Robot.exe (110592, 2007-10-17)
bin\Debug\Robot.exe.config (748, 2009-11-24)
bin\Debug\Robot.pdb (79360, 2007-10-17)
bin\Debug\Robot.vshost.exe (5632, 2007-10-17)
bin\Debug\Robot.vshost.exe.config (728, 2007-10-17)
bin\Release\Robot.exe (102400, 2004-11-02)
Common\Database.cs (3067, 2006-01-17)
Common\EntityClassBuilder.cs (11270, 2007-10-16)
Common\Resource1.resx (1784, 2003-04-25)
Common\Resource2.resx (1733, 2003-04-25)
Common\XmlConfigWriter.cs (6929, 2007-10-16)
Forms\frmSettingConnection.cs (11222, 2005-05-27)
Forms\frmSettingConnection.resx (9827, 2005-05-27)
Forms\OpenPathDialog.cs (10053, 2003-04-24)
Forms\OpenPathDialog.resx (10029, 2003-04-24)
Forms\Setting.cs (6887, 2004-11-03)
Forms\Setting.resx (5317, 2003-04-16)
Forms\SettingPath.cs (4613, 2003-05-06)
Forms\SettingPath.resx (5321, 2003-05-06)
Forms\SingleClass.cs (6531, 2003-04-17)
Forms\SingleClass.resx (21535, 2003-04-17)
Icon\13.ICO (10646, 2003-04-17)
Icon\Lightning.ico (766, 2003-04-17)
Icon\My Documents.ico (11502, 2001-07-14)
Icon\Open Folder Blue.ico (3638, 2003-04-24)
Icon\Open Folder.ico (2238, 2003-04-17)
Icon\SaveXml.ico (2238, 2003-04-21)
Icon\smiley.ico (2238, 2003-04-17)
Icon\Text Document TXT.ico (7406, 2003-04-17)
Icon\twist.ico (894, 2001-07-05)
Icon\WindowsC.ico (766, 2003-04-21)
... ...

近期下载者

相关文件


收藏者