C# 클래스 Superheroes.Services.SuperheroesService

상속: ISuperheroesService
파일 보기 프로젝트 열기: TelerikAcademy/Databases

공개 메소드들

메소드 설명
AddPowerToSuperhero ( Superhero superhero, string powerName ) : void
CreateSuperhero ( string superheroName, string secretIdentity, string cityName ) : Superhero
CreateSuperhero ( string superheroName, string secretIdentity, string cityName, IEnumerable powerNames ) : Superhero
GetAllSuperheroes ( ) : IQueryable
GetSupeheroesWithPower ( string powerName ) : IQueryable
SuperheroesService ( IUnitOfWork unitOfWork, IRepository superheroes, IRepository powers, IRepository cities ) : System

비공개 메소드들

메소드 설명
LoadOrCreateCity ( string cityName ) : City
LoadOrCreatePower ( string powerName ) : Power

메소드 상세

AddPowerToSuperhero() 공개 메소드

public AddPowerToSuperhero ( Superhero superhero, string powerName ) : void
superhero Superheroes.Models.Superhero
powerName string
리턴 void

CreateSuperhero() 공개 메소드

public CreateSuperhero ( string superheroName, string secretIdentity, string cityName ) : Superhero
superheroName string
secretIdentity string
cityName string
리턴 Superheroes.Models.Superhero

CreateSuperhero() 공개 메소드

public CreateSuperhero ( string superheroName, string secretIdentity, string cityName, IEnumerable powerNames ) : Superhero
superheroName string
secretIdentity string
cityName string
powerNames IEnumerable
리턴 Superheroes.Models.Superhero

GetAllSuperheroes() 공개 메소드

public GetAllSuperheroes ( ) : IQueryable
리턴 IQueryable

GetSupeheroesWithPower() 공개 메소드

public GetSupeheroesWithPower ( string powerName ) : IQueryable
powerName string
리턴 IQueryable

SuperheroesService() 공개 메소드

public SuperheroesService ( IUnitOfWork unitOfWork, IRepository superheroes, IRepository powers, IRepository cities ) : System
unitOfWork IUnitOfWork
superheroes IRepository
powers IRepository
cities IRepository
리턴 System