诗.程序.人生

我们互相笑一笑, 就知道了幸福的滋味, 把已逝的青春都忘了。
posts - 1, comments - 0, trackbacks - 0, articles - 9
  IT博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

关于Access中ECO的解决

Posted on 2006-05-08 16:46 诗.程序.人生 阅读(156) 评论(0)  编辑 收藏 引用 所属分类: ECO

改变connection配置中blobsize ,把1024改成65535。

还有原有的自增型字段,会变成长整型.这时最好直接再把长整型改为自增型.这个一定要早做.因为一旦有了数据就不大好改了.

设置PersistenceMapperXXX
PersistenceMapperxxx.SqlDatabaseConfig.SupportsDefaultColumnValues = false
PersistenceMapperxxx.SqlDatabaseConfig.UseSql92Joins = false.
PersistenceMapperxxx.SqlDatabaseConfig.DropColumnTemplate=
“ALTER TABLE <TableName> DROP COLUMN <ColumnName>”


It seems that the BooleanAsBit mapper stores "true" incorrectly. I suggest changing the mapper for System.Boolean to the one used in for example interbase (open the collection editor for PersistenceMapperxxx.SqlDatabaseConfig.PersistenceMappers, locate the System.Boolean entry and change the mapper to: Borland.Eco.Persistence.Default.BooleanAsInteger


After that, things should run fairly smoothly with Access...

只有注册用户登录后才能发表评论。