internal void AddTuplesToRelation()
        {
            RelationObject relationObjectToAddTupleTo = relationService.GetRelation(Parent.RelationshipNameForTuple);
            IList<TupleCellObject> tupleCellsToBeAddedToTuple = new List<TupleCellObject>();
            TupleObject tupleToBeAdded = new TupleObject();
            string curSymbol = string.Empty;

            foreach (AttributeObject attr in relationObjectToAddTupleTo.RelationAttributes)
            {
                curSymbol = QueryParser.FindNextSymbol();

                queryService.EnsureCurrentSymbolIsNotAKeyWord(curSymbol);

                string convertedSizeOfCurSymbol = string.Empty;
                TupleCellObject currentTupleCellToAdd = new TupleCellObject();

                ConfirmTupleValueMatchesAttributeType(attr, curSymbol);
                convertedSizeOfCurSymbol = CropValueToSize(attr, curSymbol);

                currentTupleCellToAdd.AttributeAssociatedWithCell = attr;
                currentTupleCellToAdd.Value = convertedSizeOfCurSymbol;

                tupleCellsToBeAddedToTuple.Add(currentTupleCellToAdd);
            }

            if(tupleCellsToBeAddedToTuple.Count != relationObjectToAddTupleTo.RelationAttributes.Count)
            {
                ErrorHandlerSURLY.TupleErrors.NotAllAttributesSatisfied(curSymbol);
            }

            tupleToBeAdded.TupleCells = tupleCellsToBeAddedToTuple;

            relationObjectToAddTupleTo.RelationsTuples.Add(tupleToBeAdded);
        }
        private AttributesModel LoadAttributeModelOfTupleCellObjectFromDatabaseForView(TupleCellObject tupleCellObject)
        {
            AttributesModel attrModel = new AttributesModel();

            attrModel.Name = tupleCellObject.AttributeAssociatedWithCell.Name;
            attrModel.Size = tupleCellObject.AttributeAssociatedWithCell.Size;
            attrModel.Type = tupleCellObject.AttributeAssociatedWithCell.Type;

            return attrModel;
        }
        private TupleCellModel LazyTupleCellFromDatabaseForView(TupleCellObject tupleCellObject)
        {
            TupleCellModel tupleCellModel = new TupleCellModel();

            tupleCellModel.AttributeAssociatedWithCell = LoadAttributeModelOfTupleCellObjectFromDatabaseForView(tupleCellObject);
            tupleCellModel.Value = tupleCellObject.Value;

            return tupleCellModel;
        }