C# Класс T4Scaffolding.Core.RelatedEntityLocators.RelatedEntityLocation.DefaultRelatedEntityLocator

Finds related entities where: * There is a property called SomethingID of type SomeClass (i.e., property name ends with "ID", case-insensitively) or a property called SomeRelationID and one called SomeRelation of type SomeClass * The type SomeClass is local to your project or one of its references * The type SomeClass has a single primary key property In other words, the two patterns we support are: * public class Contact { public int CompanyId { get; set; } where there is a class Company with a single primary key * public class Person { public int MotherId { get; set; } public Person Mother { get; set; } } to support self-referencing entities and entities with multiple relations of a given type
Наследование: IRelatedEntityLocator
Показать файл Открыть проект

Открытые методы

Метод Описание
GetRelatedEntities ( CodeType codeType, Project project, IProjectTypeLocator projectTypeLocator ) : IEnumerable

Приватные методы

Метод Описание
ExtractFirstGenericArgOfCollectionType ( CodeProperty property, Project project, IProjectTypeLocator projectTypeLocator ) : CodeType
ExtractFirstGenericArgOfImplementedICollectionInterface ( CodeClass codeClass ) : string
ExtractFirstGenericArgOfSpecificCollectionType ( CodeTypeRef typeRef, string codeLanguageGuid ) : string
GetRelatedChildEntityInfo ( CodeProperty property, Project project, IProjectTypeLocator projectTypeLocator ) : RelatedEntityInfo
GetRelatedParentEntityInfo ( CodeProperty property, IEnumerable allCandidateProperties, Project project, IProjectTypeLocator projectTypeLocator ) : RelatedEntityInfo

Описание методов

GetRelatedEntities() публичный Метод

public GetRelatedEntities ( CodeType codeType, Project project, IProjectTypeLocator projectTypeLocator ) : IEnumerable
codeType CodeType
project Project
projectTypeLocator IProjectTypeLocator
Результат IEnumerable