C# Class EFLinqAnalyzer.EFCodeFirstClassInfo

Datei anzeigen Open project: jumpinjackie/roslyn-ef-linq-analyzer Class Usage Examples

Public Methods

Method 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

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

Method Details

HasCollectionNavigationProperties() public method

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

HasProperty() public method

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

HasReadOnlyProperties() public method

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

IsCollectionNavigationProperty() public method

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

IsExplicitlyUnmapped() public method

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

IsReadOnly() public method

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

IsUnmapped() public method

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

ToString() public method

public ToString ( ) : string
return string