Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/NewLifeX/X into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Jun 21, 2018
2 parents 4bc7c15 + 1eb6899 commit 2f6acfa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions XCode/Entity/Entity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,8 @@ public static Int64 FindCount(Expression where, String order = null, String sele
/// <returns>总行数</returns>
public static Int32 FindCount(String sql)
{
if (!sql.ToLower().Contains("select")) return FindCount(sql, null, null, 0, 0);

var session = Meta.Session;

return session.QueryCount(sql);
Expand Down

0 comments on commit 2f6acfa

Please sign in to comment.