메소드 | 설명 | |
---|---|---|
GetAutoGeneratedKeyType ( |
Get the autoGeneratedKeyType value for the given type. Should be defined even if the actual key property is on a base type.
|
|
GetDataPropertyType ( |
Change the type of the given data property in the metadata. For example, a custom wrapper type on the server may be unwrapped on the client, and the metadata reflects this.
|
|
GetForeignKeyName ( |
Get the foreign key for the given scalar navigation property. This is another property on the same entity that establishes the foreign key relationship.
|
|
GetMissingFKHandling ( |
Determine the generator behaves if a foreign key data property cannot be found for the given navigation property.
|
|
GetMissingPKHandling ( |
Determine the generator behaves if a primary key is missing on an entity.
|
|
GetResourceName ( |
Get the server resource name (endpoint) for the given type. E.g. for entity type Product, it might be "Products". This value is used by Breeze client when composing a query URL for an entity.
|
|
Include ( |
Filter types from metadata generation.
|
|
IsComplexType ( |
Determine if the given type is a "Complex Type" instead of an "Entity". Complex Types are sometimes called component types or embedded types, because they are part of the parent entity instead of being related by foreign keys.
|
|
IsKeyProperty ( |
Determine if the property is part of the entity key.
|
|
IsVersionProperty ( |
Determine if the property is a version property used for optimistic concurrency control.
|
|
Pluralize ( string s ) : string |
Lame pluralizer. Assumes we just need to add a suffix. Consider using System.Data.Entity.Design.PluralizationServices.PluralizationService.
|
|
Replace ( |
Replace the given type wherever it appears in the metadata. Can be used to replace an interface with a class.
|
public GetAutoGeneratedKeyType ( |
||
type | Entity type for which metadata is being generated | |
리턴 | string |
public GetDataPropertyType ( |
||
type | Entity type for which metadata is being generated | |
propertyInfo | Property being considered | |
리턴 |
public GetForeignKeyName ( |
||
type | Entity type for which metadata is being generated | |
propertyInfo | Scalar navigation/association property | |
리턴 | string |
public GetMissingFKHandling ( |
||
type | Entity type for which metadata is being generated | |
propertyInfo | Scalar navigation/association property | |
리턴 | MissingKeyHandling |
public GetMissingPKHandling ( |
||
type | Entity type for which metadata is being generated | |
리턴 | MissingKeyHandling |
public GetResourceName ( |
||
type | Entity type for which metadata is being generated | |
리턴 | string |
public IsComplexType ( |
||
type | Entity type for which metadata is being generated | |
리턴 | bool |
public IsKeyProperty ( |
||
type | Entity type for which metadata is being generated | |
propertyInfo | Property being considered | |
리턴 | bool |
public IsVersionProperty ( |
||
type | Entity type for which metadata is being generated | |
propertyInfo | Property being considered | |
리턴 | bool |
public Replace ( |
||
type | Type to replace | |
types | IEnumerable |
List of available types provided to the PocoMetadataBuilder |
리턴 |