/// <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);
        }
示例#2
0
 public SingerManageController()
 {
     paramRepository      = ClassInstance <ParamRepository> .Instance;
     singerRepository     = ClassInstance <SingerRepository> .Instance;
     singerTypeRepository = ClassInstance <SingerTypeRepository> .Instance;
     songBookRepository   = ClassInstance <SongBookRepository> .Instance;
 }
示例#3
0
 public EntityService()
 {
     _categoryService   = new CategoryRepository();
     _melodistService   = new MelodistRepository();
     _singerService     = new SingerRepository();
     _songDetailService = new SongDetailRepository();
     _songService       = new SongRepository();
     _songWriterService = new SongWriterRepository();
     _webUserService    = new WebUserRepository();
 }
示例#4
0
        static void Main(string[] args)
        {
            var singer=new CollectSinger().GetSinger();
            var p=new SingerRepository();
            p.Insert(new Bored.Model.Singer
            {

            });
            Console.ReadLine();
        }