如何避免“未知”使用 MyGeneration 和 Oracle 10 生成代码时的数据类型?
我正在尝试使用 MyGeneration 针对 Oracle 数据库表生成 dOOdads 业务实体。 ( http://www.my Generationsoftware.com/portal/dOOdads /Overview/tabid/63/Default.aspx )
类生成器似乎在检测数据类型时出现问题。例如,PHOTOID 是 VARCHAR2。生成的类包含以下内容:
public virtual Unknown PHOTOID
{
get
{
return base.GetUnknown(ColumnNames.PHOTOID);
}
set
{
base.SetUnknown(ColumnNames.PHOTOID, value);
}
}
在其他情况下,MyGeneration 无法正确标识以下 DATE 列。
public virtual Unknown SYNC_UPLOAD_DT
{
get
{
return base.GetUnknown(ColumnNames.SYNC_UPLOAD_DT);
}
set
{
base.SetUnknown(ColumnNames.SYNC_UPLOAD_DT, value);
}
}
如果您知道如何解决此错误,我将非常感谢您的帮助!
I am attempting to generate a dOOdads business entity using MyGeneration against an Oracle database table. ( http://www.mygenerationsoftware.com/portal/dOOdads/Overview/tabid/63/Default.aspx )
The class generator appears to have issues detecting the data types. For instance, PHOTOID is VARCHAR2. The class generated contains the following:
public virtual Unknown PHOTOID
{
get
{
return base.GetUnknown(ColumnNames.PHOTOID);
}
set
{
base.SetUnknown(ColumnNames.PHOTOID, value);
}
}
In other case, MyGeneration was not able to correctly id the following DATE column.
public virtual Unknown SYNC_UPLOAD_DT
{
get
{
return base.GetUnknown(ColumnNames.SYNC_UPLOAD_DT);
}
set
{
base.SetUnknown(ColumnNames.SYNC_UPLOAD_DT, value);
}
}
If you know how to resolve this error, I would greatly appreciate your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我能够解决这个问题。我发现我没有在“默认设置”选项卡上指定“数据库目标映射”设置。进行此更改后,生成的类以合理的数据类型实现。
I was able to resolve this issue. I found that I did not specify the 'Database target mapping' settings on the 'Default settings' tab. After making this change, the generated classes were implemented with reasonable data types.