Azavea.Open.DAO.SQLServer.SQLServerDescriptor.MakeModulusClause C# (CSharp) 메소드

MakeModulusClause() 공개 메소드

public MakeModulusClause ( string fieldName ) : SqlClauseWithValue
fieldName string
리턴 Azavea.Open.DAO.SQL.SqlClauseWithValue
        public override SqlClauseWithValue MakeModulusClause(string fieldName)
        {
            StringBuilder sb = DbCaches.StringBuilders.Get();
            SqlClauseWithValue retVal = DbCaches.Clauses.Get();
            sb.Append("(");
            sb.Append(fieldName);
            sb.Append(" % ");
            retVal.PartBeforeValue = sb.ToString();
            retVal.PartAfterValue = ")";
            DbCaches.StringBuilders.Return(sb);
            return retVal;
        }