コード例 #1
0
        public SimpleFieldMapper(Func<ProcessingScope, object> selector, Field field, IEnumerable<CalculatedField> calculatedFields = null)
        {
            Selector = selector;
            Field = field;

            if (calculatedFields != null)
            {
                CalculatedFieldList = calculatedFields.ToList();
            }
        }
コード例 #2
0
 public static bool IsKey(this TableDataSchema table, Field field)
 {
     return table.Keys.Length == 0 ? field.FieldType == FieldType.Dimension : field.FieldType == FieldType.Key;            
 }
コード例 #3
0
 public StaticFieldMapper(Field field, object value)
 {
     Value = value;
     _fields = new[] {field};
 }
コード例 #4
0
ファイル: Field.cs プロジェクト: vsegrad/experience-extractor
 protected bool Equals(Field other)
 {
     return string.Equals(Name, other.Name) && ValueType == other.ValueType && FieldType == other.FieldType && SortOrder == other.SortOrder && string.Equals(SortBy, other.SortBy);
 }
コード例 #5
0
        public void AddHashKey(IKeyFactory keyFactory = null)
        {
            if( HashKey.HasValue) throw new InvalidOperationException("A hash key has already been added");
            KeyFactory = keyFactory ?? Keys.KeyFactory.Default;            
            
            _fieldList.Add(_hashKeyField = KeyFactory.GetKeyField(Schema));
            
            _hashKeyField.Hide = true;

            UpdateSchema();
        }