UNKNOWN as the Datatype when generated(MS ACCESS) -----MyGeneration

EntitySpaces Version # 2007.0.0528.0 MyGeneration Version # 1.2.0.7

 Hello,

 

I am having  a problem generating my classes. This started yesterday when I added a column to my table. After I regenerate the class using GENERATED CLASSES MASTER(c#), all the datatype is set to UNKNOWN like:

     public virtual bool LoadByPrimaryKey(Unknown line2mapuid)
        {
            if(this.es.Connection.SqlAccessType == esSqlAccessType.DynamicSQL)
                return LoadByPrimaryKeyDynamic(line2mapuid);
            else
                return LoadByPrimaryKeyStoredProcedure(line2mapuid);
        }
   

or
 

public virtual bool LoadByPrimaryKey(esSqlAccessType sqlAccessType, Unknown line2mapuid)
        {
            if (sqlAccessType == esSqlAccessType.DynamicSQL)
                return LoadByPrimaryKeyDynamic(line2mapuid);
            else
                return LoadByPrimaryKeyStoredProcedure(line2mapuid);
        }

I tried to regenerate class from other table that I did not alter and same thing. I get the UNKNOWN as the datatype.

I encountered this before but due to a missing primary key on the table. On the generated class, all portions where it supposed to show the datatype, it shows v. I searched the forum and found related only to MySQL.  

I tried uninstalling Mygeneration and EntitySpaces to no avail. Any help would be appreciated.

 Thanks

 

-------------------------------

 

Open MyGeneration Default Settings.
Make sure Microsoft Access is selected in the Driver drop-down.
Make sure Test Connection is successful.
In the Language drop-down, select C# (not C# System Types).
In the DbTarget drop-down, select OleDb.
Make sure you are using the correct default files:
  C:\Program Files\MyGeneration\Settings\Languages.xml
  C:\Program Files\MyGeneration\Settings\DbTargets.xml
Click OK.
Click the MyMeta Browser icon (3rd from left).
Click the MyMeta Properties icon (5th from right).
In the MyMeta Browser, navigate down to one of your columns.
In the Properties pane, is Language Type filled in?
  (They should be int, string, decimal, etc.)

 

 

转载于:https://www.cnblogs.com/jes_shaw/archive/2009/07/07/1518534.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值