mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update Oracle Sqlfunc.GetDate bug
This commit is contained in:
parent
286fb4f1b6
commit
27d2eeceac
@ -52,6 +52,7 @@ namespace OrmTest
|
|||||||
})
|
})
|
||||||
).ToList();
|
).ToList();
|
||||||
var test2 = db.Queryable<Order>().Select<ViewOrder>().ToList();
|
var test2 = db.Queryable<Order>().Select<ViewOrder>().ToList();
|
||||||
|
var test3 = db.Queryable<Order>().Select(it=>new Order() { CreateTime=SqlFunc.GetDate() }).ToList();
|
||||||
Console.WriteLine("#### Examples End ####");
|
Console.WriteLine("#### Examples End ####");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,6 +41,15 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return base.GetDbColumnName(entityName,propertyName).ToUpper();
|
return base.GetDbColumnName(entityName,propertyName).ToUpper();
|
||||||
}
|
}
|
||||||
|
public override bool IsTranslationText(string name)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(name) && name.ToLower() == "sysdate")
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
var result = name.IsContainsIn(SqlTranslationLeft, SqlTranslationRight, UtilConstants.Space, ExpressionConst.LeftParenthesis, ExpressionConst.RightParenthesis);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
public partial class OracleMethod : DefaultDbMethod, IDbMethods
|
public partial class OracleMethod : DefaultDbMethod, IDbMethods
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user