Browse Source

-

pull/12/MERGE
sunkaixuan 7 years ago
parent
commit
199f4d60b6
  1. 11
      Src/Asp.Net/SqlSugar/Infrastructure/SqlSugarAccessory.cs
  2. 10
      Src/Asp.Net/SqlSugar/SqlSugarClient.cs

11
Src/Asp.Net/SqlSugar/Infrastructure/SqlSugarAccessory.cs

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

10
Src/Asp.Net/SqlSugar/SqlSugarClient.cs

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

Loading…
Cancel
Save