public override void CollectDataFromChildren() { Id = FindFirstChildNodeByType <IdNode>().Id; FieldType = FindFirstChildNodeByType <TypeNameNode>().FieldType; TypeParamOpt = FindFirstChildNodeByType <TypeParamsOptNode>().TypeParamOpt; ConstaraintList = FindFirstChildNodeByType <ConstraintListOptNodes>().ConstraintList; NullSpecOpt = FindFirstChildNodeByType <NullSpectOptNode>().NullSpecOpt; }
public override void CollectDataFromChildren() { var state = ""; foreach (SqlKeyNode child in ChildNodes) { state += child.Text; } if (state.Length == 0) { state = "Empty"; } NullSpecOpt = ParseEnum <NullSpecOpt>(state); }