C# Class EFLinqAnalyzer.EFCodeFirstClassInfo

Afficher le fichier Open project: jumpinjackie/roslyn-ef-linq-analyzer Class Usage Examples

Méthodes publiques

Méthode Description
HasCollectionNavigationProperties ( ) : bool

Returns true if this class has any collection navigation properties

HasProperty ( string name ) : bool

Returns true if this class has a property of the given name

HasReadOnlyProperties ( ) : bool

Returns true if this class has any read-only properties

IsCollectionNavigationProperty ( string propertyName ) : bool

Returns true if the given property is a collection navigation property

IsExplicitlyUnmapped ( string name ) : bool

Returns true if the given property name has a NotMappedAttribute applied

IsReadOnly ( string name ) : bool

Returns true if the given property name is read-only

IsUnmapped ( string name ) : bool

Returns true if the given property has the NotMappedAttribute applied

ToString ( ) : string

Private Methods

Méthode Description
AddProperties ( IEnumerable symbols, Action regCallback ) : void
EFCodeFirstClassInfo ( INamedTypeSymbol clsType ) : Microsoft.CodeAnalysis
IsValidCollectionType ( string metadataName ) : bool

Method Details

HasCollectionNavigationProperties() public méthode

Returns true if this class has any collection navigation properties
public HasCollectionNavigationProperties ( ) : bool
Résultat bool

HasProperty() public méthode

Returns true if this class has a property of the given name
public HasProperty ( string name ) : bool
name string
Résultat bool

HasReadOnlyProperties() public méthode

Returns true if this class has any read-only properties
public HasReadOnlyProperties ( ) : bool
Résultat bool

IsCollectionNavigationProperty() public méthode

Returns true if the given property is a collection navigation property
public IsCollectionNavigationProperty ( string propertyName ) : bool
propertyName string
Résultat bool

IsExplicitlyUnmapped() public méthode

Returns true if the given property name has a NotMappedAttribute applied
public IsExplicitlyUnmapped ( string name ) : bool
name string
Résultat bool

IsReadOnly() public méthode

Returns true if the given property name is read-only
public IsReadOnly ( string name ) : bool
name string
Résultat bool

IsUnmapped() public méthode

Returns true if the given property has the NotMappedAttribute applied
public IsUnmapped ( string name ) : bool
name string
Résultat bool

ToString() public méthode

public ToString ( ) : string
Résultat string