新增了Subsonic 3.0,並且想知道如何在對象屬性上執行LIKE運算符。鑑於以下課程,我將如何使用Subsonic 3.0執行LIKE操作。例如SELECT * FROM categories WHERE name LIKE'%foo%';Subsonic 3.0:如何在對象上使用LIKE?
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; }
}
}