Groups
Sign in
Groups
Ibatisnet用户组
Conversations
About
Send feedback
Help
用DM1.5&DA1.8的问题:高手急救~~~
0 views
Skip to first unread message
guang...@gmail.com
unread,
Nov 30, 2006, 10:14:35 PM
11/30/06
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ibatisnet用户组
DaoManager ds = (DaoManager)DaoManager.GetInstance(this);
DaoSession dss = (DaoSession)ds.LocalDaoSession;
SqlMapDaoSession sqlMapDaoSession = (SqlMapDaoSession)dss;
(SqlMapper)sqlMapDaoSession.SqlMap;
想通过DAO的方式配置出sqlMapper如上。
但是把DaoSession类型转化时出错,无法得到Sqlmapper.但是在老版本上是支持的。
在下面这句出错:
SqlMapDaoSession sqlMapDaoSession = (SqlMapDaoSession)dss;
错误作息:
"Specified cast is error."
请教大家的支持。
Reply all
Reply to author
Forward
0 new messages