C# Class Tp.Integration.Plugin.Common.Storage.Persisters.ProfilePersister

Inheritance: IProfilePersister
显示文件 Open project: TargetProcess/Target-Process-Plugins

Public Methods

Method Description
Add ( ProfileName profileName, bool initialized, AccountName accountName ) : Profile
Delete ( ProfileName profileName, AccountName accountName ) : void
GetAll ( AccountName accountName ) : IEnumerable
ProfilePersister ( IDatabaseConfiguration configuration, IPluginMetadata pluginMetadata ) : System.Collections.Generic
Update ( ProfileName profileName, bool initialized, AccountName accountName ) : Profile

Private Methods

Method Description
CreateDataContext ( ) : PluginDatabaseModelDataContext
SelectAccount ( IQueryable accounts, AccountName accountName ) : IQueryable
SelectProfile ( IQueryable accounts, ProfileName profileName, AccountName accountName ) : Profile

Method Details

Add() public method

public Add ( ProfileName profileName, bool initialized, AccountName accountName ) : Profile
profileName Tp.Integration.Messages.ProfileName
initialized bool
accountName Tp.Integration.Messages.AccountName
return Profile

Delete() public method

public Delete ( ProfileName profileName, AccountName accountName ) : void
profileName Tp.Integration.Messages.ProfileName
accountName Tp.Integration.Messages.AccountName
return void

GetAll() public method

public GetAll ( AccountName accountName ) : IEnumerable
accountName Tp.Integration.Messages.AccountName
return IEnumerable

ProfilePersister() public method

public ProfilePersister ( IDatabaseConfiguration configuration, IPluginMetadata pluginMetadata ) : System.Collections.Generic
configuration IDatabaseConfiguration
pluginMetadata IPluginMetadata
return System.Collections.Generic

Update() public method

public Update ( ProfileName profileName, bool initialized, AccountName accountName ) : Profile
profileName Tp.Integration.Messages.ProfileName
initialized bool
accountName Tp.Integration.Messages.AccountName
return Profile