mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-05 03:17:41 +08:00
Optimized code
This commit is contained in:
@@ -88,16 +88,7 @@ namespace SqlSugar
|
||||
{
|
||||
((OracleConnection)this.Connection).BeginTransaction();
|
||||
}
|
||||
|
||||
public override Func<string, SugarParameter[], KeyValuePair<string, SugarParameter[]>> ProcessingEventStartingSQL => (sql,parameter)=> {
|
||||
|
||||
if(sql== "-- No table ")
|
||||
{
|
||||
sql = " SELECT 'No table' FROM DUAL WHERE 1=2 ";
|
||||
}
|
||||
return new KeyValuePair<string, SugarParameter[]>(sql, parameter);
|
||||
};
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Only SqlServer
|
||||
/// </summary>
|
||||
@@ -107,6 +98,17 @@ namespace SqlSugar
|
||||
{
|
||||
((OracleConnection)this.Connection).BeginTransaction(iso);
|
||||
}
|
||||
|
||||
public override Func<string, SugarParameter[], KeyValuePair<string, SugarParameter[]>> ProcessingEventStartingSQL => (sql, parameter) => {
|
||||
|
||||
if (sql == "-- No table ")
|
||||
{
|
||||
sql = " SELECT 'No table' FROM DUAL WHERE 1=2 ";
|
||||
}
|
||||
return new KeyValuePair<string, SugarParameter[]>(sql, parameter);
|
||||
};
|
||||
|
||||
|
||||
public override IDataAdapter GetAdapter()
|
||||
{
|
||||
return new MyOracleDataAdapter();
|
||||
|
||||
Reference in New Issue
Block a user