/// <summary> /// Gets the SingerRepository singleton instance. SingerRepository is endpoint for all singer related queries /// </summary> /// <returns></returns> public SingerRepository GetSingerRepositoryInstance() { SingerRepository sr = SingerRepository.Instance; sr.SetAuthToken(_authToken); return(sr); }
public SingerManageController() { paramRepository = ClassInstance <ParamRepository> .Instance; singerRepository = ClassInstance <SingerRepository> .Instance; singerTypeRepository = ClassInstance <SingerTypeRepository> .Instance; songBookRepository = ClassInstance <SongBookRepository> .Instance; }
public EntityService() { _categoryService = new CategoryRepository(); _melodistService = new MelodistRepository(); _singerService = new SingerRepository(); _songDetailService = new SongDetailRepository(); _songService = new SongRepository(); _songWriterService = new SongWriterRepository(); _webUserService = new WebUserRepository(); }
static void Main(string[] args) { var singer=new CollectSinger().GetSinger(); var p=new SingerRepository(); p.Insert(new Bored.Model.Singer { }); Console.ReadLine(); }