public ProjectBuilder Attribute(string name) { currentAttribute = currentEntity.FindOrCreateAttribute(name, source); // Default the datatype to string currentAttribute.DataType = new DataType(PrimitiveType.String, 255); return(this); }
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); }