Метод | Описание | |
---|---|---|
GetColumnName ( |
Returns the column name for a given property Default: Same column name as property name
|
|
GetManyToOneForeignKeyColumnName ( |
Returns the foreign key column name for a navigation property from a child entity to a parent (many to one) Default: Property name + Id, so the property "BlogPost.Blog" returns the column name "BlogId" This method is called when a join is made which includes a child->parent navigation property. |
|
GetTableName ( |
Returns the table name for a given class Default: Same table name as class name
|
|
HasIdentityId ( |
Returns true if the given class represents a database table with an identity primary key column, false otherwise Default: True if the property representing the primary key is an integer property, false otherwise
|
|
IsIdProperty ( |
Returns true if the given property represents the primary key column in the database table Default: True if the columns is called "Id" false otherwise
|
|
ShouldMapProperty ( |
Returns true if the property should be included in queries/statements. If false, the property is ignored entirely by WeenyMapper. Default: Non-static properties with public getter and setter are mapped, all other properties are ignored
|
public GetColumnName ( |
||
propertyInfo | The PropertyInfo for which to determine the underlying database column name | |
Результат | string |
public GetManyToOneForeignKeyColumnName ( |
||
propertyInfo | The navigation property used in the join | |
Результат | string |
public GetTableName ( |
||
entityType | The type of the entity for which to determine the underlying database table name | |
Результат | string |
public HasIdentityId ( |
||
entityType | The type for which is should be determined if the underlying database table has an identity primary key column | |
Результат | bool |
public IsIdProperty ( |
||
propertyInfo | The PropertyInfo for which is should be determined if WeenyMapper should attempt to map it against a column in the database or not | |
Результат | bool |
public ShouldMapProperty ( |
||
propertyInfo | The PropertyInfo for which is should be determined if WeenyMapper should attempt to map it against a column in the database or not | |
Результат | bool |