sqlsugar/Src/OracleUS7ASCII/SqlSugar/ExpressionsToSql/Subquery/Items/SubWithNoLock.cs

55 lines
951 B
C#
Raw Permalink Normal View History

2025-05-11 16:20:50 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace SqlSugar
{
public class SubWithNolock : ISubOperation
{
public ExpressionContext Context
{
get;set;
}
public Expression Expression
{
get;set;
}
public bool HasWhere
{
get;set;
}
public string Name
{
get
{
return "WithNoLock";
}
}
public int Sort
{
get
{
return 301;
}
}
public string GetValue(Expression expression)
{
if (Context is SqlServerExpressionContext)
{
return SqlWith.NoLock;
}
else
{
return "";
}
}
}
}