Active Record simple query
2007-10-16 17:05
323 查看
Active Record simple query: like
public static IList FindByName(string name) { SimpleQuery query = new SimpleQuery( @"from Students stu where stu.Name like ?", "%"+name+"%" ); return (IList)ActiveRecordBase.ExecuteQuery(query); }
More info about query:
http://www.cnblogs.com/Terrylee/archive/2006/07/15/372823.html
SQL Trim:
UPDATE Courses
SET Poly = LTRIM(RTRIM(Poly))
今天完成了JPAE 的最后更新。包括Admin Module搜索按钮的更新。还有JPAE SPM/STPM的UI设计。
相关文章推荐
- Active Record Query Interface各种写法都有了,有时间细看一下
- ObjectQuery:ActiveRecord 强类型对象查询工具
- ActiveRecord group by query
- ObjectQuery for Castle.ActiveRecord 使用指南(1):入门
- http://m.onkey.org/2010/1/22/active-record-query-interface
- ObjectQuery for Castle.ActiveRecord 使用指南(1):From语句
- The Ruby On Rials Gudie -- Active Record Query Interface
- Active Record Query
- ObjectQuery for Castle.ActiveRecord 使用指南(1):Joins
- 编程异常——如果你报createSQLQuery is not valid without active transaction,...
- 使用S2SH框架时,出现org.hibernate.HibernateException: createQuery is not valid without active transaction
- simple use of ActiveMQ
- Rails执行数据库回滚时报错:ActiveRecord::IrreversibleMigration exception
- createQuery is not valid without active transaction
- Castle ActiveRecord框架学习(二):快速搭建简单博客网站
- 使用Castle.ActiveRecord的注意事项之二:级联
- Castle ActiveRecord学习实践(2):构建配置信息
- [ActiveRecord] 之五:ActiveRecordMediator
- Castle.ActiveRecord 多数据库的配置(自家用)
- Rails出现ROLLBACK TO SAVEPOINT active_record_1信息的解决