mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
Add comment
This commit is contained in:
@@ -11,6 +11,9 @@ namespace SqlSugar
|
||||
{
|
||||
public SqlSugarProvider Context { get; set; }
|
||||
public EntityInfo EntityInfo { get; set; }
|
||||
|
||||
#region Common Method
|
||||
|
||||
public DateTime GetTableGetDate(DateTime time, SplitType type)
|
||||
{
|
||||
switch (type)
|
||||
@@ -69,8 +72,9 @@ namespace SqlSugar
|
||||
this.Context.Ado.IsEnableLogEvent = oldIsEnableLogEvent;
|
||||
return result;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Helper
|
||||
#region Common Helper
|
||||
private DateTime GetDate(string group1, string group2, string group3, string dbTableName)
|
||||
{
|
||||
var yearIndex = dbTableName.IndexOf("{year}");
|
||||
@@ -154,7 +158,7 @@ namespace SqlSugar
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 得到一周的周一和周日的日期
|
||||
#region Date Helper
|
||||
public static DateTime GetMondayDate()
|
||||
{
|
||||
return GetMondayDate(DateTime.Now);
|
||||
|
Reference in New Issue
Block a user