From a3cb5b7c3d03424672f801ef9fdd226aa8bd66fd Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 14 Nov 2022 01:03:01 +0800 Subject: [PATCH] Add demo --- Src/Asp.Net/SqlServerTest/Demo/DemoE_CodeFirst.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Src/Asp.Net/SqlServerTest/Demo/DemoE_CodeFirst.cs b/Src/Asp.Net/SqlServerTest/Demo/DemoE_CodeFirst.cs index 5d9536c49..c5a79057a 100644 --- a/Src/Asp.Net/SqlServerTest/Demo/DemoE_CodeFirst.cs +++ b/Src/Asp.Net/SqlServerTest/Demo/DemoE_CodeFirst.cs @@ -41,9 +41,15 @@ namespace OrmTest { Name = it.CreateTime.HasValue ? it.CreateTime.Value.ToString("yyyy-MM-dd") : string.Empty }).ToList(); + db.CodeFirst.InitTables(); Console.WriteLine("#### CodeFirst end ####"); } } + public class CodeFirstimg + { + [SugarColumn(Length =100)] + public byte[] img { get; set; } + } public class CodeFirstTable111 { [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]