C# Class WebApplication1.Models.AdminModel

Inheritance: DbContext
Show file Open project: NuGet/Entropy

Public Methods

Method Description
AdminModel ( ) : System
GetAllAdmins ( ) : List
GetAllUserNames ( ) : List
GetIdByUserName ( String userName ) : int
GetUserNameById ( int id ) : string

Protected Methods

Method Description
OnModelCreating ( DbModelBuilder modelBuilder ) : void

Method Details

AdminModel() public method

public AdminModel ( ) : System
return System

GetAllAdmins() public method

public GetAllAdmins ( ) : List
return List

GetAllUserNames() public method

public GetAllUserNames ( ) : List
return List

GetIdByUserName() public method

public GetIdByUserName ( String userName ) : int
userName String
return int

GetUserNameById() public method

public GetUserNameById ( int id ) : string
id int
return string

OnModelCreating() protected method

protected OnModelCreating ( DbModelBuilder modelBuilder ) : void
modelBuilder DbModelBuilder
return void