## v0.8.7

- 修复 导航关系多属性时的错序 bug;
- 修复 延时属性的类,没有设置Namespace时的 bug;
This commit is contained in:
2881099
2019-08-16 11:09:48 +08:00
parent a62d07d2b7
commit b0314f643e
16 changed files with 158 additions and 36 deletions

View File

@ -39,6 +39,7 @@ public static partial class FreeSqlGlobalExtensions
public static bool IsNullableType(this Type that) => that?.FullName.StartsWith("System.Nullable`1[") == true;
public static bool IsAnonymousType(this Type that) => that?.FullName.StartsWith("<>f__AnonymousType") == true;
public static Type NullableTypeOrThis(this Type that) => that?.IsNullableType() == true ? that.GenericTypeArguments.First() : that;
internal static string NotNullAndConcat(this string that, params object[] args) => string.IsNullOrEmpty(that) ? null : string.Concat(new object[] { that }.Concat(args));
/// <summary>
/// 测量两个经纬度的距离,返回单位:米