C# Class FluentLinqToSql.Modifications.UseFieldForAssociationStorage

Modification that will set the 'storage' attribute for association mappings.
The modification will not be applied to mappings that have a Storge attribute explicitly specified.
Inheritance: MappingModification
显示文件 Open project: JeremySkinner/FluentLinqToSql

Public Methods

Method Description
UseFieldForAssociationStorage ( string>.Func nameSpecifier ) : System

Creates a new instance of the USeFieldForAssociationStorage class.

Protected Methods

Method Description
HandleBelongsToMappings ( System mappings ) : void

Applies the modification to many-to-one mappings.

HandleHasManyMappings ( System mappings ) : void

Applies the modification to one-to-many mappings.

HandleHasOneMappings ( System mappings ) : void

Applies the modification to one-to-one mappings.

Private Methods

Method Description
ApplyStorageAttribute ( IPropertyMapping mapping ) : void

Method Details

HandleBelongsToMappings() protected method

Applies the modification to many-to-one mappings.
protected HandleBelongsToMappings ( System mappings ) : void
mappings System The mappings to which the modification should be applied.
return void

HandleHasManyMappings() protected method

Applies the modification to one-to-many mappings.
protected HandleHasManyMappings ( System mappings ) : void
mappings System The one-to-many mappings to which the modification should be applied.
return void

HandleHasOneMappings() protected method

Applies the modification to one-to-one mappings.
protected HandleHasOneMappings ( System mappings ) : void
mappings System The mappings to which the modification should be applied.
return void

UseFieldForAssociationStorage() public method

Creates a new instance of the USeFieldForAssociationStorage class.
public UseFieldForAssociationStorage ( string>.Func nameSpecifier ) : System
nameSpecifier string>.Func Delegatae that, when invoked, will return the name that should be used for the underlying storage field
return System