src/Misc/EFTools/EntityDesignModel/ModelHelper.cs
/// <summary>
///     Create a mapping between a column name and the generated property name.
/// </summary>
/// <param name="columnNames"></param>
/// <returns></returns>
Create a mapping between a column name and the generated property name.
Create a mapping between a column name and the generated property name .
internal static IDictionary<string, string> ConstructComplexTypePropertyNameToColumnNameMapping(IList<string> columnNames)
        {
            IDictionary<string, string> map = new Dictionary<string, string>();
            foreach (var columnName in columnNames)
            {
                var propertyName = CreateValidSimpleIdentifier(columnName);
                Debug.Assert(false == map.ContainsKey(propertyName), "Duplicate candidate property name is found: " + propertyName);
                if (false == map.ContainsKey(propertyName))
                {
                    map.Add(propertyName, columnName);
                }
            }
            return map;
        }
internal static IDictionary < string , string > ConstructComplexTypePropertyNameToColumnNameMapping ( IList < string > columnNames ) { IDictionary < string , string > map = new Dictionary < string , string > ( ) ; foreach ( var columnName in columnNames ) { var propertyName = CreateValidSimpleIdentifier ( columnName ) ; Debug . Assert ( false == map . ContainsKey ( propertyName ) , " " + propertyName ) ; if ( false == map . ContainsKey ( propertyName ) ) { map . Add ( propertyName , columnName ) ; } } return map ; }
Create a mapping between a column name and the generated property name.
Create a mapping between a column name and the generated property name .
None
columnNames
IList<string>
None