public GenderFacade(string connectionString) { var optionBuilder = new DbContextOptionsBuilder <VotingPlatformContext>(); optionBuilder.UseSqlServer(connectionString); ctx = new VotingPlatformContext(optionBuilder.Options); this.iGender = new GenderRepository(ctx); }
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; }
public RoleRespository(VotingPlatformContext _ctx) { ctx = _ctx; }
public VotingRepository(VotingPlatformContext _ctx) { ctx = _ctx; }
public UserProfileRepository(VotingPlatformContext _ctx) { ctx = _ctx; }