Exemplo 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);
        }
Exemplo 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);
        }
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 4
0
 public CategoryRepository(VotingPlatformContext _ctx)
 {
     ctx = _ctx;
 }
Exemplo n.º 5
0
 public GenderRepository(VotingPlatformContext _ctx)
 {
     ctx = _ctx;
 }
Exemplo n.º 6
0
 public RoleRespository(VotingPlatformContext _ctx)
 {
     ctx = _ctx;
 }
Exemplo n.º 7
0
 public VotingRepository(VotingPlatformContext _ctx)
 {
     ctx = _ctx;
 }
 public UserProfileRepository(VotingPlatformContext _ctx)
 {
     ctx = _ctx;
 }