Esempio n. 1
0
        public GenderFacade(string connectionString)
        {
            var optionBuilder = new DbContextOptionsBuilder <VotingPlatformContext>();

            optionBuilder.UseSqlServer(connectionString);

            ctx          = new VotingPlatformContext(optionBuilder.Options);
            this.iGender = new GenderRepository(ctx);
        }
Esempio n. 2
0
        public UserVoteFacade(string connectionString)
        {
            var optionBuilder = new DbContextOptionsBuilder <VotingPlatformContext>();

            optionBuilder.UseSqlServer(connectionString);

            ctx               = new VotingPlatformContext(optionBuilder.Options);
            this.iUserVote    = new UserVoteRepository(ctx);
            this.iUserProfile = new UserProfileRepository(ctx);
        }
        public UserProfileFacade(string connectionString, string kunciRahasiaku)
        {
            var optionBuilder = new DbContextOptionsBuilder <VotingPlatformContext>();

            optionBuilder.UseSqlServer(connectionString);

            ctx = new VotingPlatformContext(optionBuilder.Options);
            this.iUserProfile   = new UserProfileRepository(ctx);
            this.iRole          = new RoleRespository(ctx);
            this.kunciRahasiaku = kunciRahasiaku;
        }
 public CategoryRepository(VotingPlatformContext _ctx)
 {
     ctx = _ctx;
 }
 public GenderRepository(VotingPlatformContext _ctx)
 {
     ctx = _ctx;
 }
Esempio n. 6
0
 public RoleRespository(VotingPlatformContext _ctx)
 {
     ctx = _ctx;
 }
Esempio n. 7
0
 public VotingRepository(VotingPlatformContext _ctx)
 {
     ctx = _ctx;
 }
 public UserProfileRepository(VotingPlatformContext _ctx)
 {
     ctx = _ctx;
 }