Decompress all files to D:\
Before first runing,Edit the Databasemap.xml file to have
the Access databases point to the full path of the test.mdb included with the package and
replace this line | string currentPath = @"D:\pltest\Test\";| in file named test.cs with
|string currentPath =[your test project folder] ;|
test.mdb created by Ms Access2000.
There is a Solution named pltest (pltest.sln) with all projects in it. Open it with Microsoft Visual Studio .NET.
Any comments to: [email protected]
Current implementation has the following features.
Encapsulation of the persistence mechanism.
You should only call the save, delete, restore methods of your persistent objects and the Persistence Layer will automatically perform an action with your database.
Multiple object actions.
You can retrieve and delete multiple objects at once.
Associations support.
When you save delete or update any object you can do the same action with associated objects.
Inheritance support.
Makes possible to map an inheritance tree to a database schema.
Transactions support.
You can combine several actions into one transaction and commit or rollback it as a single action.
Multiple database support.
Different objects can be mapped to different databases. Now only support MsAccess and MsSQLServer
Optimistic and pessimistic locking support
没有合适的资源?快使用搜索试试~ 我知道了~
PersistenceLayer持久层框架-Xxmm
共69个文件
cs:39个
dll:5个
xml:5个
5星 · 超过95%的资源 需积分: 50 90 下载量 116 浏览量
2006-03-16
00:00:00
上传
评论
收藏 390KB RAR 举报
温馨提示
.Net平台下的O-RMap中间件。我用C#实现了一个实体层Xxmm。采用它的好处是你的应用程序开发者不需要了解关系数据库结构,事实上,他们甚至不需要知道对象是保存在关系数据库中。因为Xxmm封装各种数据库操作,并且完成ORMap(实体类-关系数据库的映射)。和程序员交互的只是类和对象。 如果数据库中表或者字段有所改变的话(你没有过这样的经历吗?),你的Class 中的代码无需改变或者只需要很少部分的改变。因为实体类和表的映射,由实体层来完成。你的应用程序和数据库不再紧密耦合。你也不需要一遍又一遍重写让人生畏的SQL语句了。因为SQL语句都是在运行时刻有Xxmm自动生成。它将随你的数据库变化而变化。
资源推荐
资源详情
资源评论
收起资源包目录
18770_xxmm.rar (69个子文件)
pltest
Xxmm
AssemblyInfo.cs 2KB
Association.cs 3KB
XmlConfigLoader.cs 15KB
IConfigLoader.cs 303B
Enum.cs 2KB
OrderEntry.cs 298B
obj
Debug
PersistenceLayer.projdata 267KB
temp
Xxmm.pdb 240KB
PersistenceLayer.dll.incr 6KB
TempPE
PersistenceLayer.pdb 292KB
Xxmm.dll 68KB
Xxmm.dll.incr 5KB
PersistenceLayer.dll 68KB
Xxmm.projdata 70KB
bin
Debug
Xxmm.pdb 240KB
PersistenceLayer.pdb 292KB
Xxmm.dll 68KB
PersistenceLayer.dll 68KB
PersistenceLayer.xml 29KB
Query.cs 13KB
Commander
SqlCommander.cs 2KB
UpdateCommander.cs 4KB
DeleteCommander.cs 2KB
SelectCommander.cs 5KB
InsertCommander.cs 2KB
vssver.scc 112B
Databases
RelationalDatabase.cs 6KB
MsAccess.cs 4KB
MsSqlServer.cs 4KB
Criteria
RetrieveCriteria.cs 4KB
UpdateCriteria.cs 2KB
DeleteCriteria.cs 2KB
SelectionCriteria.cs 2KB
vssver.scc 96B
PersistentCriteria.cs 739B
PersistenceBroker.cs 20KB
PlException.cs 1KB
Map
ColumnMap.cs 1KB
AssociationMap.cs 2KB
vssver.scc 128B
AttributeMap.cs 790B
DatabaseMap.cs 275B
TableMap.cs 1000B
ClassMap.cs 8KB
Setting.cs 2KB
Transaction.cs 3KB
PersistentObject.cs 3KB
Xxmm.csproj.user 2KB
PersistenceLayer.xml 29KB
Condition.cs 5KB
Xxmm.csproj 9KB
ObjectCursor.cs 2KB
pltest.sln 1KB
pltest.suo 9KB
Test
AssemblyInfo.cs 2KB
Test.csproj.user 2KB
obj
Debug
bin
Debug
Xxmm.dll 68KB
PersistenceLayer.xml 29KB
App.ico 1KB
DatabaseMap.xml 289B
Test.csproj 5KB
ClassMap.xml 2KB
Test.cs 5KB
readme.txt 1KB
PersistentObjects
Customer.cs 2KB
Account.cs 2KB
Employee.cs 1KB
Person.cs 1KB
test.mdb 200KB
共 69 条
- 1
资源评论
- ljfaaa1262013-03-08感觉框架还可以,有帮助!
- fuzhang2015-12-22资源不错啊
ocoogo
- 粉丝: 1
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- python开心麻花影视作品分析程序+源码.zip
- pythonExcel数据分析师程序+源码.zip
- PlatformUI.jar 支持RCP控件环境插件
- VB+ACCESS大型机房学生上机管理系统(源代码+系统).zip
- 基于BP神经网络的回归分析,基于优化动量因子的BP神经网络,基于优化学习率的BP神经网络,基于优化隐藏层神经元的bp神经网络
- python读取excel数据Python-file-reading-master.zip
- STC15单片机串口2使用程序例子
- 读取日志的excel生成周报 用python3开发weekplan-master.zip
- python 读取excel数据导入dbimport-data-master.zip
- K折交叉验证BP神经网络,多输入多输出BP神经网络(代码完整,数据齐全)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功