Exemplo n.º 1
0
        public Field(string displayName, string sqlFieldName, FieldTypeBase fieldType,
                     string sourceTable, string customJoin)
        {
            SelectedValues = new List <SelectedValue>();

            _displayName  = displayName;
            _sqlFieldName = sqlFieldName.ToLower();
            _fieldType    = fieldType;
            _sourceTable  = !string.IsNullOrWhiteSpace(sourceTable) ? sourceTable.ToLower() : null;
            _customJoin   = !string.IsNullOrWhiteSpace(customJoin) ? customJoin.ToLower() : null;
        }
Exemplo n.º 2
0
 public Field(string displayName, string sqlFieldName, FieldTypeBase fieldType,
              string sourceTable = null, string foreingKey = null, string lookupKey = null) : this(displayName, sqlFieldName, fieldType, sourceTable, null)
 {
     _foreingKey = !string.IsNullOrWhiteSpace(foreingKey) ? foreingKey.ToLower() : null;
     _lookupKey  = !string.IsNullOrWhiteSpace(lookupKey) ? lookupKey.ToLower() : null;
 }