public void CdmTypeAttributeDefinitionHasDataType() { var generator = BuildCdmEntityGenerator(); var attributeName = "Name"; var attributeType = cdmCorpus.CreateDataType(CdmDataFormat.String); var table = new Table("Customer") .WithColumn(attributeName, SqlDbType.VarChar); CdmEntityDefinition entity = generator.GenerateEntity(table); CdmTypeAttributeDefinition attribute = entity.GetAttribute(attributeName); Assert.NotNull(attribute); Assert.Equal(attributeType.NamedReference, attribute.DataType.NamedReference); }