Interface IColumnChangeDescriptor
Mapping entity column descriptor change interface.
public interface IColumnChangeDescriptor
- Extension Methods
Properties
ColumnName
Gets or sets the name of a column in database. If not specified, MemberName value will be returned.
string ColumnName { get; set; }
Property Value
MemberName
Gets the name of mapped member. When applied to class or interface, should contain name of property of field.
If column is mapped to a property or field of composite object, MemberName should contain a path to that
member using dot as separator.
public class Address
{
public string City { get; set; }
public string Street { get; set; }
public int Building { get; set; }
}
[Column("city", "Residence.Street")]
[Column("user_name", "Name")]
public class User
{
public string Name;
[Column("street", ".Street")]
[Column("building_number", MemberName = ".Building")]
public Address Residence { get; set; }
}</code></pre></example>
string MemberName { get; }