sunkaixuan
3 years ago
3 changed files with 38 additions and 0 deletions
@ -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<UnitClob>(); |
|||
db.Insertable(new List<UnitClob>() { |
|||
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; } |
|||
} |
|||
|
|||
} |
|||
} |
Loading…
Reference in new issue