From bbec2082c4e157e357724e0694f272bb84f973d7 Mon Sep 17 00:00:00 2001 From: shuxinqin Date: Sun, 19 Dec 2021 15:50:13 +0800 Subject: [PATCH] v4.19.0 --- src/Chloe.Extension/Chloe.Extension.csproj | 2 +- src/Chloe.MySql/Chloe.MySql.csproj | 2 +- src/Chloe.Oracle/Chloe.Oracle.csproj | 2 +- src/Chloe.PostgreSQL/Chloe.PostgreSQL.csproj | 2 +- src/Chloe.SQLite/Chloe.SQLite.csproj | 2 +- src/Chloe.SqlServer/Chloe.SqlServer.csproj | 2 +- src/Chloe/Chloe.csproj | 2 +- src/ChloeDemo/ChloeDemo.csproj | 122 +++++++++--------- src/ChloeDemo/DbFunctions.cs | 5 + src/ChloeDemo/TestEntity.cs | 10 +- ...64\346\226\260\346\227\245\345\277\227.md" | 4 + 11 files changed, 81 insertions(+), 74 deletions(-) diff --git a/src/Chloe.Extension/Chloe.Extension.csproj b/src/Chloe.Extension/Chloe.Extension.csproj index 665bfeb0..b1e500f1 100644 --- a/src/Chloe.Extension/Chloe.Extension.csproj +++ b/src/Chloe.Extension/Chloe.Extension.csproj @@ -15,7 +15,7 @@ false - + bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml diff --git a/src/Chloe.MySql/Chloe.MySql.csproj b/src/Chloe.MySql/Chloe.MySql.csproj index 08097278..dfad076b 100644 --- a/src/Chloe.MySql/Chloe.MySql.csproj +++ b/src/Chloe.MySql/Chloe.MySql.csproj @@ -15,7 +15,7 @@ false - + bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml diff --git a/src/Chloe.Oracle/Chloe.Oracle.csproj b/src/Chloe.Oracle/Chloe.Oracle.csproj index d6699db9..5e7dc007 100644 --- a/src/Chloe.Oracle/Chloe.Oracle.csproj +++ b/src/Chloe.Oracle/Chloe.Oracle.csproj @@ -15,7 +15,7 @@ false - + bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml diff --git a/src/Chloe.PostgreSQL/Chloe.PostgreSQL.csproj b/src/Chloe.PostgreSQL/Chloe.PostgreSQL.csproj index 1ae401a3..2bb0701a 100644 --- a/src/Chloe.PostgreSQL/Chloe.PostgreSQL.csproj +++ b/src/Chloe.PostgreSQL/Chloe.PostgreSQL.csproj @@ -15,7 +15,7 @@ false - + bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml diff --git a/src/Chloe.SQLite/Chloe.SQLite.csproj b/src/Chloe.SQLite/Chloe.SQLite.csproj index 16ed08e4..87cf0e5e 100644 --- a/src/Chloe.SQLite/Chloe.SQLite.csproj +++ b/src/Chloe.SQLite/Chloe.SQLite.csproj @@ -15,7 +15,7 @@ false - + bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml diff --git a/src/Chloe.SqlServer/Chloe.SqlServer.csproj b/src/Chloe.SqlServer/Chloe.SqlServer.csproj index 5360df30..9c742742 100644 --- a/src/Chloe.SqlServer/Chloe.SqlServer.csproj +++ b/src/Chloe.SqlServer/Chloe.SqlServer.csproj @@ -15,7 +15,7 @@ false - + bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml diff --git a/src/Chloe/Chloe.csproj b/src/Chloe/Chloe.csproj index 154f7c7b..a08dc3c3 100644 --- a/src/Chloe/Chloe.csproj +++ b/src/Chloe/Chloe.csproj @@ -18,7 +18,7 @@ false - + bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml diff --git a/src/ChloeDemo/ChloeDemo.csproj b/src/ChloeDemo/ChloeDemo.csproj index 751e17e1..78f471ae 100644 --- a/src/ChloeDemo/ChloeDemo.csproj +++ b/src/ChloeDemo/ChloeDemo.csproj @@ -1,73 +1,73 @@  - - - - netcoreapp2.0;net45 + + netcoreapp3.1 + + - ChloeDemo - Exe - ChloeDemo - $(PackageTargetFallback);dnxcore50 - false - false - false - + ChloeDemo + Exe + ChloeDemo + false + false + false + - - netcore - - - netfx - - - - + + netcore + + + netfx + + + + - - - - - - - - - + + + + + + + + + - - AnyCPU - + + AnyCPU + - - bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml - + + bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml + - - - - - - - + + + + + + + + - - - - ..\lib\MySql.Data.dll - - - ..\lib\Oracle.ManagedDataAccess.dll - - - ..\lib\System.Data.SQLite.dll - + + + + ..\lib\MySql.Data.dll + + + ..\lib\Oracle.ManagedDataAccess.dll + + + ..\lib\System.Data.SQLite.dll + - - Always - - - Always - - + + Always + + + Always + + diff --git a/src/ChloeDemo/DbFunctions.cs b/src/ChloeDemo/DbFunctions.cs index 34302670..62c21fa0 100644 --- a/src/ChloeDemo/DbFunctions.cs +++ b/src/ChloeDemo/DbFunctions.cs @@ -18,5 +18,10 @@ public static bool StringLike(this string str, string value) { return str.Contains(value); } + + public static bool GroupConcat(T field) + { + throw new NotSupportedException("Using in lambda only."); + } } } diff --git a/src/ChloeDemo/TestEntity.cs b/src/ChloeDemo/TestEntity.cs index 3bcd10c9..e8e72985 100644 --- a/src/ChloeDemo/TestEntity.cs +++ b/src/ChloeDemo/TestEntity.cs @@ -1,15 +1,13 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using Chloe.Annotations; namespace ChloeDemo { + [Table("TestEntity")] public class TestEntity { - [Chloe.Annotations.Column(IsPrimaryKey = true)] - [Chloe.Annotations.AutoIncrement] + [Column(IsPrimaryKey = true)] + [AutoIncrement] public int Id { get; set; } public byte? F_Byte { get; set; } public Int16? F_Int16 { get; set; } diff --git "a/\346\233\264\346\226\260\346\227\245\345\277\227.md" "b/\346\233\264\346\226\260\346\227\245\345\277\227.md" index e47396eb..3cb4481a 100644 --- "a/\346\233\264\346\226\260\346\227\245\345\277\227.md" +++ "b/\346\233\264\346\226\260\346\227\245\345\277\227.md" @@ -1,3 +1,7 @@ +* **2021-12-19** + * 使用 C#10 + * Chloe.MySql 支持设置 Schema + * 版本更新至 v4.19.0 * **2021-11-27** * 修改 https://github.com/shuxinqin/Chloe/issues/275 * 版本更新至 v4.18.0