using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Kingo.PluginServiceInterface.Model { public class GDEntity { public string GDLX { get; set; } public string GDPDJB { get; set; } public string GDPDJBMC { get; set; } private decimal _kcdlxs; [Range(typeof(Decimal), "0", "1"), DataType(DataType.Currency)] public decimal KCDLXS { get { return Math.Round(_kcdlxs, 4, MidpointRounding.AwayFromZero); } set { _kcdlxs = value; } } } }