mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
-
This commit is contained in:
@@ -29,6 +29,11 @@ namespace OrmTest.UnitTest
|
||||
{
|
||||
using (var db = GetInstance())
|
||||
{
|
||||
db.Database.IsEnableLogEvent = true;
|
||||
db.Database.LogEventStarting = (sql,pars) =>
|
||||
{
|
||||
Console.WriteLine(sql+" " + pars);
|
||||
};
|
||||
//var list = db.Queryable<Student>()
|
||||
|
||||
// .Where(st => st.Id > 0)
|
||||
|
@@ -33,7 +33,14 @@ namespace SqlSugar
|
||||
base.Start();
|
||||
if (parameter.CommonTempData is JoinType)
|
||||
{
|
||||
base.Context.Result.Append(parameter.CommonTempData.ObjToString()+ ",{" + i + "}");
|
||||
if (i > 0)
|
||||
{
|
||||
base.Context.Result.Append(","+parameter.CommonTempData.ObjToString() + ",");
|
||||
}
|
||||
else
|
||||
{
|
||||
base.Context.Result.Append(parameter.CommonTempData.ObjToString() + ",");
|
||||
}
|
||||
++i;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user