예제 #1
0
        public ProjectBuilder Attribute(string name)
        {
            currentAttribute = currentEntity.FindOrCreateAttribute(name, source);

            // Default the datatype to string
            currentAttribute.DataType = new DataType(PrimitiveType.String, 255);

            return(this);
        }
예제 #2
0
        public AttributeMergerTests()
        {
            sourceSource = new DataModelSource();
            targetSource = new DataModelSource();

            sourceModel = new DataModel();
            targetModel = new DataModel();

            sourceEntity = sourceModel.FindOrCreateEntity("entity", sourceSource);
            targetEntity = targetModel.FindOrCreateEntity("entity", targetSource);

            sourceAttribute = sourceEntity.FindOrCreateAttribute("att", sourceSource);
            targetAttribute = targetEntity.FindOrCreateAttribute("att", targetSource);

            merger = new AttributeMerger(logger.Object);
        }