src/Inflatable/BaseClasses/MappingBaseClass.cs
/// <summary>
/// Gets the name of the column based on property name.
/// </summary>
/// <param name="propertyName">Name of the property.</param>
/// <returns>The column name.</returns>
Gets the name of the column based on property name.
Gets the name of the column based on property name .
public string GetColumnName(string propertyName)
        {
            var IDProperty = IDProperties.Find(x => x.Name == propertyName);
            if (!(IDProperty is null))
            {
                return "[" + SchemaName + "].[" + TableName + "].[" + IDProperty.ColumnName + "]";
            }
            var ReferenceProperty = ReferenceProperties.Find(x => x.Name == propertyName);
            if (!(ReferenceProperty is null))
            {
                return "[" + SchemaName + "].[" + TableName + "].[" + ReferenceProperty.ColumnName + "]";
            }
            return string.Empty;
        }
public string GetColumnName ( string propertyName ) { var IDProperty = IDProperties . Find ( x => x . Name == propertyName ) ; if ( ! ( IDProperty is null ) ) { return " " + SchemaName + " " + TableName + " " + IDProperty . ColumnName + " " ; } var ReferenceProperty = ReferenceProperties . Find ( x => x . Name == propertyName ) ; if ( ! ( ReferenceProperty is null ) ) { return " " + SchemaName + " " + TableName + " " + ReferenceProperty . ColumnName + " " ; } return string . Empty ; }
Gets the name of the column based on property name.
Gets the name of the column based on property name .
The column name.
The column name .
propertyName
string
Name of the property.
Name of the property .