This commit is contained in:
sunkaixuan
2018-01-17 12:50:44 +08:00
parent 199f4d60b6
commit 7c4d165229
2 changed files with 2 additions and 1 deletions

View File

@@ -476,6 +476,7 @@ namespace SqlSugar
}
public virtual List<T> SqlQuery<T>(string sql, params SugarParameter[] parameters)
{
this.Context.InitMppingInfo<T>();
var builder = InstanceFactory.GetSqlbuilder(this.Context.CurrentConnectionConfig);
builder.SqlQueryBuilder.sql.Append(sql);
if (parameters != null && parameters.Any())

View File

@@ -146,7 +146,7 @@ namespace SqlSugar
}
#endregion
protected void InitMppingInfo<T>()
internal void InitMppingInfo<T>()
{
InitMppingInfo(typeof(T));
}