コード例 #1
0
ファイル: SeedDatum.cs プロジェクト: v-vong3/Core
        public SeedDatum(object value, Type valueType, SeedDatumType datumType)
        {
            Value     = value;
            ValueType = valueType;
            DatumType = datumType;

            // DESIGN: All date-related entities must use UTC format to account for time inconsistencies
            // such as leap year & daylight savings time
            DateAdded = DateTime.UtcNow;
        }
コード例 #2
0
        public virtual ISeedBuilder Remove(SeedDatumType datumType)
        {
            var matches = Seeds.Where(s => s.DatumType == datumType);

            foreach (var match in matches)
            {
                Seeds.Remove(match);
            }

            return(this);
        }