diff --git a/Src/Asp.Net/SqliteTest/SqliteTest.csproj b/Src/Asp.Net/SqliteTest/SqliteTest.csproj index c34331431..7724f0ef5 100644 --- a/Src/Asp.Net/SqliteTest/SqliteTest.csproj +++ b/Src/Asp.Net/SqliteTest/SqliteTest.csproj @@ -77,6 +77,7 @@ + diff --git a/Src/Asp.Net/SqliteTest/UnitTest/Main.cs b/Src/Asp.Net/SqliteTest/UnitTest/Main.cs index 09f4bbe78..26475559b 100644 --- a/Src/Asp.Net/SqliteTest/UnitTest/Main.cs +++ b/Src/Asp.Net/SqliteTest/UnitTest/Main.cs @@ -31,6 +31,7 @@ namespace OrmTest } public static void Init() { + UnitFilterdafa.Init(); UInsert3.Init(); USaveable.Init(); UnitSubToList.Init(); diff --git a/Src/Asp.Net/SqliteTest/UnitTest/UnitFilterdafa.cs b/Src/Asp.Net/SqliteTest/UnitTest/UnitFilterdafa.cs new file mode 100644 index 000000000..dee4cc568 --- /dev/null +++ b/Src/Asp.Net/SqliteTest/UnitTest/UnitFilterdafa.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace OrmTest +{ + public class UnitFilterdafa + { + public static void Init() + { + var db = NewUnitTest.Db; + db.CodeFirst.InitTables(); + db.QueryFilter.AddTableFilter(it => it.IsDeleted == false); + db.Queryable().LeftJoin((x, y) => x.Id == y.Id) + .ToList(); + } + + } + public class UintLeft0123 : IDEL + { + public string Id { get; set; } + [SqlSugar.SugarColumn(ColumnName = "Is_Deleted")] + public bool IsDeleted { get; set; } + } + public class UintRight0123: IDEL + { + public string Id { get; set; } + [SqlSugar.SugarColumn(ColumnName = "Is_Deleted")] + public bool IsDeleted { get; set; } + } + + public interface IDEL + { + bool IsDeleted { get; set; } + } +}