Interface IColumnChangeDescriptor
Mapping entity column descriptor change interface.
Namespace: LinqToDB.Mapping
Assembly: linq2db.dll
Syntax
public interface IColumnChangeDescriptor
Properties
| Improve this Doc View SourceColumnName
Gets or sets the name of a column in database. If not specified, MemberName value will be returned.
Declaration
string ColumnName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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; }
}
Declaration
string MemberName { get; }
Property Value
Type | Description |
---|---|
System.String |