diff --git a/Src/Asp.Net/OracleTest/OracleTest.csproj b/Src/Asp.Net/OracleTest/OracleTest.csproj index 53672f166..342857268 100644 --- a/Src/Asp.Net/OracleTest/OracleTest.csproj +++ b/Src/Asp.Net/OracleTest/OracleTest.csproj @@ -83,6 +83,7 @@ + diff --git a/Src/Asp.Net/OracleTest/UnitTest/Main.cs b/Src/Asp.Net/OracleTest/UnitTest/Main.cs index b241961d9..a8d9bfe3e 100644 --- a/Src/Asp.Net/OracleTest/UnitTest/Main.cs +++ b/Src/Asp.Net/OracleTest/UnitTest/Main.cs @@ -34,6 +34,8 @@ namespace OrmTest } public static void Init() { + + UCustom01.Init(); DeleteTest(); CodeFirst(); Updateable(); diff --git a/Src/Asp.Net/OracleTest/UnitTest/UCustom01.cs b/Src/Asp.Net/OracleTest/UnitTest/UCustom01.cs new file mode 100644 index 000000000..89e70a899 --- /dev/null +++ b/Src/Asp.Net/OracleTest/UnitTest/UCustom01.cs @@ -0,0 +1,35 @@ +using SqlSugar; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace OrmTest +{ + public class UCustom01 + { + public static void Init() + { + var db = NewUnitTest.Db; + var x = "aaaaaaaaadssadsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssaaa" + + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; + db.CodeFirst.InitTables(); + db.Insertable(new List() { + new UnitClob(){ Clob="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}, + new UnitClob(){ + Clob=x+x+x+x+x+x+x+x} + }).ExecuteCommand(); + } + + public class UnitClob + { + [SugarColumn(IsPrimaryKey =true)] + public Guid Id { get; set; } + + [SugarColumn(ColumnDataType ="clob", IsNullable =true)] + public string Clob { get; set; } + } + + } +}