在ECO中使用备注字段 或NVARCHAR

来源:互联网 发布:西安软件开发培训班 编辑:程序博客网 时间:2024/06/16 07:19
从blog.org的我的原博客中迁入

发表时间:2007-1-20 11:00:39

在UML设计中加入:

1) Create the attribute with the type String
2) Set the persistence mapper to StringAsMemo

在ECOSPACE中改变属性:

Now in the app (which is db dependant)

1) On the PersistenceMapper in my app I expand the SqlDatabaseConfig
property
2) Click the [...] editor on the PersistenceMappers property
3) Click Add
4) Name = StringAsMemo
5) Mapper = Borland.Eco.Persistence.SqlServer.SqlClient.StringAsText

============================================


Attribute:


Description: Text
PMapper = StringAsNText
Allow Null = true
set the length to -1. 


in the PersistenceMapper.SqlDataConfig.PersistenceMapper I added:


Name : StringAsNText
Mapper: Borland.Eco.Persistence.Interbase.StringAsBdpBlob

原创粉丝点击