瀏覽代碼

ef中,decimal精度在map中指定

黑艺新账号
liangkun 1 年之前
父節點
當前提交
36bc0d6f0f
共有 2 個文件被更改,包括 5 次插入2 次删除
  1. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/ADR_RestrictionMap.cs
  2. +3
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_Restriction/ADR_RestrictionEntity.cs

+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/PersonnelManagement/ADR_RestrictionMap.cs 查看文件

@@ -19,6 +19,8 @@ namespace Learun.Application.Mapping
this.ToTable("ADR_RESTRICTION");
//主键
this.HasKey(t => t.ID);
this.Property(e => e.GPSLon).HasPrecision(15, 8);
this.Property(e => e.GPSLat).HasPrecision(15, 8);
#endregion

#region 配置关系


+ 3
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_Restriction/ADR_RestrictionEntity.cs 查看文件

@@ -11,6 +11,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
/// 日 期:2020-09-03 14:57
/// 描 述:考勤限制
/// </summary>
public class ADR_RestrictionEntity
{
#region 实体成员
@@ -125,10 +126,10 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement
public bool EnableGPS { get; set; }

[Column("GPSLON")]
public string GPSLon { get; set; }
public decimal? GPSLon { get; set; }

[Column("GPSLAT")]
public string GPSLat { get; set; }
public decimal? GPSLat { get; set; }

[Column("GPSADDR")]
public string GPSAddr { get; set; }


Loading…
取消
儲存