C# Класс MongoMembership.Mongo.MongoGateway

Наследование: IMongoGateway
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
CreateIndex void
MongoGateway System
RegisterClassMapping void

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

Метод Описание
CreateRole ( Role role ) : void
CreateUser ( User user ) : void
DropRoles ( ) : void
DropUsers ( ) : void
GetAll ( string applicationName, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
GetAllAnonym ( string applicationName, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
GetAllAnonymByUserName ( string applicationName, string username, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
GetAllByEmail ( string applicationName, string email, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
GetAllByUserName ( string applicationName, string username, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
GetAllInactiveAnonymSince ( string applicationName, System.DateTime inactiveDate, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
GetAllInactiveSince ( string applicationName, System.DateTime inactiveDate, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
GetAllRoles ( string applicationName ) : string[]
GetByEmail ( string applicationName, string email ) : User
GetById ( string id ) : User
GetByUserName ( string applicationName, string username ) : User
GetInactiveAnonymSinceByUserName ( string applicationName, string username, System.DateTime userInactiveSinceDate, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
GetInactiveSinceByUserName ( string applicationName, string username, System.DateTime userInactiveSinceDate, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
GetRolesForUser ( string applicationName, string username ) : string[]
GetUserForPeriodOfTime ( string applicationName, System.TimeSpan timeSpan ) : int
GetUsersInRole ( string applicationName, string roleName ) : string[]
IsRoleExists ( string applicationName, string roleName ) : bool
IsUserInRole ( string applicationName, string username, string roleName ) : bool
MongoGateway ( string mongoConnectionString ) : System
RemoveRole ( string applicationName, string roleName ) : void
RemoveUser ( User user ) : void
UpdateUser ( User user ) : void

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

Метод Описание
CreateIndex ( ) : void
MongoGateway ( ) : System
RegisterClassMapping ( ) : void

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

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

public CreateRole ( Role role ) : void
role Role
Результат void

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

public CreateUser ( User user ) : void
user User
Результат void

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

public DropRoles ( ) : void
Результат void

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

public DropUsers ( ) : void
Результат void

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

public GetAll ( string applicationName, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
applicationName string
pageIndex int
pageSize int
totalRecords int
Результат IEnumerable

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

public GetAllAnonym ( string applicationName, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
applicationName string
pageIndex int
pageSize int
totalRecords int
Результат IEnumerable

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

public GetAllAnonymByUserName ( string applicationName, string username, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
applicationName string
username string
pageIndex int
pageSize int
totalRecords int
Результат IEnumerable

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

public GetAllByEmail ( string applicationName, string email, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
applicationName string
email string
pageIndex int
pageSize int
totalRecords int
Результат IEnumerable

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

public GetAllByUserName ( string applicationName, string username, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
applicationName string
username string
pageIndex int
pageSize int
totalRecords int
Результат IEnumerable

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

public GetAllInactiveAnonymSince ( string applicationName, System.DateTime inactiveDate, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
applicationName string
inactiveDate System.DateTime
pageIndex int
pageSize int
totalRecords int
Результат IEnumerable

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

public GetAllInactiveSince ( string applicationName, System.DateTime inactiveDate, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
applicationName string
inactiveDate System.DateTime
pageIndex int
pageSize int
totalRecords int
Результат IEnumerable

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

public GetAllRoles ( string applicationName ) : string[]
applicationName string
Результат string[]

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

public GetByEmail ( string applicationName, string email ) : User
applicationName string
email string
Результат User

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

public GetById ( string id ) : User
id string
Результат User

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

public GetByUserName ( string applicationName, string username ) : User
applicationName string
username string
Результат User

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

public GetInactiveAnonymSinceByUserName ( string applicationName, string username, System.DateTime userInactiveSinceDate, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
applicationName string
username string
userInactiveSinceDate System.DateTime
pageIndex int
pageSize int
totalRecords int
Результат IEnumerable

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

public GetInactiveSinceByUserName ( string applicationName, string username, System.DateTime userInactiveSinceDate, int pageIndex, int pageSize, int &totalRecords ) : IEnumerable
applicationName string
username string
userInactiveSinceDate System.DateTime
pageIndex int
pageSize int
totalRecords int
Результат IEnumerable

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

public GetRolesForUser ( string applicationName, string username ) : string[]
applicationName string
username string
Результат string[]

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

public GetUserForPeriodOfTime ( string applicationName, System.TimeSpan timeSpan ) : int
applicationName string
timeSpan System.TimeSpan
Результат int

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

public GetUsersInRole ( string applicationName, string roleName ) : string[]
applicationName string
roleName string
Результат string[]

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

public IsRoleExists ( string applicationName, string roleName ) : bool
applicationName string
roleName string
Результат bool

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

public IsUserInRole ( string applicationName, string username, string roleName ) : bool
applicationName string
username string
roleName string
Результат bool

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

public MongoGateway ( string mongoConnectionString ) : System
mongoConnectionString string
Результат System

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

public RemoveRole ( string applicationName, string roleName ) : void
applicationName string
roleName string
Результат void

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

public RemoveUser ( User user ) : void
user User
Результат void

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

public UpdateUser ( User user ) : void
user User
Результат void