public static void AddColumn(EntityType table, EdmProperty column) { DebugCheck.NotNull(table); DebugCheck.NotNull(column); if (!table.Properties.Contains(column)) { var configuration = column.GetConfiguration() as PrimitivePropertyConfiguration; if ((configuration == null) || string.IsNullOrWhiteSpace(configuration.ColumnName)) { var preferredName = column.GetPreferredName() ?? column.Name; column.SetUnpreferredUniqueName(column.Name); column.Name = table.Properties.UniquifyName(preferredName); } table.AddMember(column); } }