Add comment

This commit is contained in:
sunkaixuna
2021-10-25 22:36:40 +08:00
parent 3821aff9fc
commit 73c80ede43

View File

@@ -11,6 +11,9 @@ namespace SqlSugar
{ {
public SqlSugarProvider Context { get; set; } public SqlSugarProvider Context { get; set; }
public EntityInfo EntityInfo { get; set; } public EntityInfo EntityInfo { get; set; }
#region Common Method
public DateTime GetTableGetDate(DateTime time, SplitType type) public DateTime GetTableGetDate(DateTime time, SplitType type)
{ {
switch (type) switch (type)
@@ -69,8 +72,9 @@ namespace SqlSugar
this.Context.Ado.IsEnableLogEvent = oldIsEnableLogEvent; this.Context.Ado.IsEnableLogEvent = oldIsEnableLogEvent;
return result; return result;
} }
#endregion
#region Helper #region Common Helper
private DateTime GetDate(string group1, string group2, string group3, string dbTableName) private DateTime GetDate(string group1, string group2, string group3, string dbTableName)
{ {
var yearIndex = dbTableName.IndexOf("{year}"); var yearIndex = dbTableName.IndexOf("{year}");
@@ -154,7 +158,7 @@ namespace SqlSugar
} }
#endregion #endregion
#region #region Date Helper
public static DateTime GetMondayDate() public static DateTime GetMondayDate()
{ {
return GetMondayDate(DateTime.Now); return GetMondayDate(DateTime.Now);