mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-08 18:34:55 +08:00
Add comment
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user