From b3ed6989aa52304c7317fc61c68b5dfeed07655b Mon Sep 17 00:00:00 2001 From: 28810 <28810@YEXIANGQIN> Date: Thu, 26 Dec 2019 16:50:17 +0800 Subject: [PATCH] update issues template --- .github/ISSUE_TEMPLATE/bug_report.md | 38 ------------------------ FreeSql.DbContext/FreeSql.DbContext.xml | 7 +++++ FreeSql.Tests/FreeSql.Tests/UnitTest3.cs | 16 ++++++++++ 3 files changed, 23 insertions(+), 38 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index dd84ea78..00000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: '' -labels: '' -assignees: '' - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Desktop (please complete the following information):** - - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Version [e.g. 22] - -**Smartphone (please complete the following information):** - - Device: [e.g. iPhone6] - - OS: [e.g. iOS8.1] - - Browser [e.g. stock browser, safari] - - Version [e.g. 22] - -**Additional context** -Add any other context about the problem here. diff --git a/FreeSql.DbContext/FreeSql.DbContext.xml b/FreeSql.DbContext/FreeSql.DbContext.xml index dc0203b8..d9f91124 100644 --- a/FreeSql.DbContext/FreeSql.DbContext.xml +++ b/FreeSql.DbContext/FreeSql.DbContext.xml @@ -110,6 +110,13 @@ 清空状态数据 + + + 根据 lambda 条件删除数据 + + + + 添加 diff --git a/FreeSql.Tests/FreeSql.Tests/UnitTest3.cs b/FreeSql.Tests/FreeSql.Tests/UnitTest3.cs index 0fba1c0e..93ce4d45 100644 --- a/FreeSql.Tests/FreeSql.Tests/UnitTest3.cs +++ b/FreeSql.Tests/FreeSql.Tests/UnitTest3.cs @@ -14,6 +14,7 @@ using System.Threading; using System.Data.SqlClient; using kwlib; using System.Diagnostics; +using System.IO; namespace FreeSql.Tests { @@ -43,6 +44,21 @@ namespace FreeSql.Tests // fsql.Select().ToList(); //} + //var testByte = new TestByte { pic = File.ReadAllBytes(@"C:\Users\28810\Desktop\github\FreeSql\functions06.png") }; + //var sql = g.sqlserver.Insert(testByte).NoneParameter().ToSql(); + //g.sqlserver.Insert(testByte).ExecuteAffrows(); + + //var getTestByte = g.sqlserver.Select(testByte).First(); + + //File.WriteAllBytes(@"C:\Users\28810\Desktop\github\FreeSql\functions06_write.png", getTestByte.pic); + } + + class TestByte + { + public Guid id { get; set; } + + [Column(DbType = "varbinary(max)")] + public byte[] pic { get; set; } } class ut3_t1