mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 18:22:23 +08:00
-
This commit is contained in:
@@ -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())
|
||||
|
@@ -146,7 +146,7 @@ namespace SqlSugar
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void InitMppingInfo<T>()
|
||||
internal void InitMppingInfo<T>()
|
||||
{
|
||||
InitMppingInfo(typeof(T));
|
||||
}
|
||||
|
Reference in New Issue
Block a user