예제 #1
0
        /// <summary>
        /// 新建实体时使用
        /// </summary>
        public static PointStatistic New()
        {
            PointStatistic pointStatistic = new PointStatistic()
            {
                StatisticalDay   = DateTime.UtcNow.Day,
                StatisticalMonth = DateTime.UtcNow.Month,
                StatisticalYear  = DateTime.UtcNow.Year
            };

            return(pointStatistic);
        }
예제 #2
0
 /// <summary>
 /// 新建实体时使用
 /// </summary>
 public static PointStatistic New()
 {
     PointStatistic pointStatistic = new PointStatistic()
     {
         StatisticalDay = DateTime.UtcNow.Day,
         StatisticalMonth = DateTime.UtcNow.Month,
         StatisticalYear = DateTime.UtcNow.Year
     };
     return pointStatistic;
 }