【发布时间】:2009-09-02 00:55:32
【问题描述】:
Subsonic 3.0 的新手,想知道如何对对象属性执行 LIKE 运算符。给定以下课程,我将如何使用 Subsonic 3.0 执行 LIKE 操作。例如 SELECT * FROM categories WHERE name LIKE '%foo%';
public class Category
{
private String categoryID;
private String name;
public Category()
{
// Do Nothing
}
public Category(String name)
{
this.Name = name;
}
public string CategoryID
{
get { return this.categoryID; }
set { this.categoryID = value; }
}
public string Name
{
get { return this.name; }
set { this.name = value; }
}
}
【问题讨论】:
标签: c# linq subsonic subsonic3