小编nil*_*zen的帖子

根据路由组动态加载控制器

是否可以根据路由组动态加载控制器,它的js文件和模板?Psuedo代码不起作用:

$routeProvider.when('/:plugin', function(plugin) {
  templateUrl: 'plugins/' + plugin + '/index.html',
  controller: plugin + 'Ctrl',
  resolve: { /* Load the JS file, from 'plugins/' + plugin + '/controller.js' */ }
});
Run Code Online (Sandbox Code Playgroud)

我已经看到很多类似这样的问题,但是没有基于路由组加载js文件/控制器的问题.

angularjs angular-routing angularjs-controller

9
推荐指数
1
解决办法
2万
查看次数

在Hibernate HQL更新查询中使用连接

string query = "update User u set u.PointsTotal = 1 join u.Rounds r where r.RoundId = :round and (r.Row1 & :val) > 0";

NHibernateSession.CreateQuery(query)
    .SetByte("val", (byte)val)
    .SetInt32("round", roundId)
    .ExecuteUpdate();
Run Code Online (Sandbox Code Playgroud)

只是告诉我"给定的密钥不在字典中."

是的,关系按预期工作,可以做选择....

nhibernate join hql

4
推荐指数
1
解决办法
8027
查看次数