This commit is contained in:
sunkaixuan
2018-01-17 12:39:22 +08:00
parent 06ac4f6179
commit 199f4d60b6
2 changed files with 16 additions and 5 deletions

View File

@@ -73,6 +73,17 @@ namespace SqlSugar
this.Context._Ado = value;
}
}
protected IContextMethods ContextRewritableMethods
{
get
{
return this.Context._RewritableMethods;
}
set
{
this.Context._RewritableMethods = value;
}
}
#endregion
#region Init mppingInfo

View File

@@ -80,14 +80,14 @@ namespace SqlSugar
{
get
{
if (this.Context._RewritableMethods == null)
if (ContextRewritableMethods == null)
{
this.Context._RewritableMethods = new ContextMethods();
this.Context._RewritableMethods.Context = this.Context;
ContextRewritableMethods = new ContextMethods();
ContextRewritableMethods.Context = this.Context;
}
return this.Context._RewritableMethods;
return ContextRewritableMethods;
}
set { this.Context._RewritableMethods = value; }
set { ContextRewritableMethods = value; }
}
#endregion