完善伪静态链接
This commit is contained in:
@@ -183,6 +183,18 @@ namespace COMCMS.Core
|
||||
#endregion
|
||||
|
||||
#region 高级查询
|
||||
/// <summary>
|
||||
/// 通过FileName查找
|
||||
/// </summary>
|
||||
/// <param name="filename"></param>
|
||||
/// <param name="kid"></param>
|
||||
/// <returns></returns>
|
||||
public static Product FindByFileName(string filename, int kid = 0)
|
||||
{
|
||||
var where = _.FileName == filename;
|
||||
if (kid > 0) where &= _.KId == kid;
|
||||
return Find(where);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 业务操作
|
||||
|
||||
Reference in New Issue
Block a user