diff --git a/FreeSql/Extensions/EntityUtilExtensions.cs b/FreeSql/Extensions/EntityUtilExtensions.cs index 38bb347a..19e34f0f 100644 --- a/FreeSql/Extensions/EntityUtilExtensions.cs +++ b/FreeSql/Extensions/EntityUtilExtensions.cs @@ -23,7 +23,7 @@ namespace FreeSql.Extensions.EntityUtil { /// /// /// - public static void GetEntityKeyString(this IFreeSql orm, TEntity entity, string splitString = "*|_,[,_|*") => + public static string GetEntityKeyString(this IFreeSql orm, TEntity entity, string splitString = "*|_,[,_|*") => GetEntityKeyString(orm, typeof(TEntity), entity, splitString); public static string GetEntityKeyString(this IFreeSql orm, Type entityType, object entity, string splitString = "*|_,[,_|*") { if (entity == null) return null; @@ -110,7 +110,7 @@ namespace FreeSql.Extensions.EntityUtil { /// /// /// - public static void GetEntityKeyValues(this IFreeSql orm, TEntity entity) => + public static object[] GetEntityKeyValues(this IFreeSql orm, TEntity entity) => GetEntityKeyValues(orm, typeof(TEntity), entity); public static object[] GetEntityKeyValues(this IFreeSql orm, Type entityType, object entity) { if (entity == null) return null; @@ -150,7 +150,7 @@ namespace FreeSql.Extensions.EntityUtil { /// /// /// - public static void GetEntityString(this IFreeSql orm, TEntity entity) => + public static string GetEntityString(this IFreeSql orm, TEntity entity) => GetEntityString(orm, typeof(TEntity), entity); public static string GetEntityString(this IFreeSql orm, Type entityType, object entity) { if (entity == null) return null; @@ -305,7 +305,7 @@ namespace FreeSql.Extensions.EntityUtil { /// /// /// - public static void GetEntityIdentityValueWithPrimary(this IFreeSql orm, TEntity entity) => + public static long GetEntityIdentityValueWithPrimary(this IFreeSql orm, TEntity entity) => GetEntityIdentityValueWithPrimary(orm, typeof(TEntity), entity); public static long GetEntityIdentityValueWithPrimary(this IFreeSql orm, Type entityType, object entity) { if (entity == null) return 0; @@ -426,7 +426,7 @@ namespace FreeSql.Extensions.EntityUtil { /// /// /// - public static void CompareEntityValueReturnColumns(this IFreeSql orm, TEntity entity1, TEntity entity2, bool isEqual) => + public static string[] CompareEntityValueReturnColumns(this IFreeSql orm, TEntity entity1, TEntity entity2, bool isEqual) => CompareEntityValueReturnColumns(orm, typeof(TEntity), entity1, entity2, isEqual); public static string[] CompareEntityValueReturnColumns(this IFreeSql orm, Type entityType, object entity1, object entity2, bool isEqual) { if (entityType == null) entityType = entity1?.GetType() ?? entity2?.GetType(); diff --git a/FreeSql/FreeSql.csproj b/FreeSql/FreeSql.csproj index 1b236d4f..576b182e 100644 --- a/FreeSql/FreeSql.csproj +++ b/FreeSql/FreeSql.csproj @@ -2,7 +2,7 @@ netstandard2.0 - 0.4.16 + 0.4.16.1 true YeXiangQin FreeSql is the most convenient ORM in dotnet. It supports Mysql, Postgresql, SqlServer, Oracle and Sqlite.