Exemplo n.º 1
0
 public AddNewPublicationModel(PublicationDbContext phd, ProfileDbContext prdb)
 {
     phdStudentsDbContext = phd;
     profileDbContext     = prdb;
     CurrentProfile       = new Profile();
 }
Exemplo n.º 2
0
 public RecommendationService(ProfileDbContext db)
 {
     _db = db;
 }
Exemplo n.º 3
0
 public SummaryResumeService(ProfileDbContext dbContext)
 {
     _dbContext = dbContext;
 }
 public AllCoursesModel(ProfileDbContext pdc, CourseDbContext cdc)
 {
     profileDbContext = pdc;
     courseDbContext  = cdc;
     CurrentProfile   = new Profile();
 }
Exemplo n.º 5
0
 public CourseResumeService(ProfileDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Exemplo n.º 6
0
 public SkillService(ProfileDbContext db)
 {
     _db = db;
 }
Exemplo n.º 7
0
 private static void AddIdProviders(ProfileDbContext context)
 {
     if (!context.Endpoints.Any())
     {
         context.Endpoints.AddRange(new[]
         {
             new Endpoint
             {
                 CreateDateTime = DateTime.UtcNow,
                 Description    = "simple identity server",
                 Name           = "simpleidserver",
                 Url            = "http://localhost:60000/.well-known/openid-configuration",
                 Type           = (int)EndpointTypes.OPENID,
                 ManagerUrl     = "http://localhost:60003/.well-known/openidmanager-configuration",
                 Order          = 1
             },
             new Endpoint
             {
                 CreateDateTime = DateTime.UtcNow,
                 Description    = "authorization server",
                 Name           = "authserver",
                 Url            = "http://localhost:60004/.well-known/uma2-configuration",
                 Type           = (int)EndpointTypes.AUTH,
                 ManagerUrl     = "http://localhost:60007/.well-known/openidmanager-configuration",
                 Order          = 1
             },
             new Endpoint
             {
                 CreateDateTime = DateTime.UtcNow,
                 Description    = "scim server",
                 Name           = "scimserver",
                 Url            = "http://localhost:60001",
                 Type           = (int)EndpointTypes.SCIM,
                 ManagerUrl     = "http://localhost:60004/.well-known/uma2-configuration",
                 Order          = 1
             },
             new Endpoint
             {
                 CreateDateTime = DateTime.UtcNow,
                 Description    = "fake simple identity server",
                 Name           = "fakesimpleidserver",
                 Url            = "http://fake:60000/.well-known/openid-configuration",
                 Type           = (int)EndpointTypes.OPENID,
                 ManagerUrl     = "http://fake:60003/.well-known/openidmanager-configuration",
                 Order          = 2
             },
             new Endpoint
             {
                 CreateDateTime = DateTime.UtcNow,
                 Description    = "fake authorization server",
                 Name           = "fakeauthserver",
                 Url            = "http://fake:60004/.well-known/uma2-configuration",
                 ManagerUrl     = "http://fake:60004/.well-known/uma2-configuration",
                 Type           = (int)EndpointTypes.AUTH,
                 Order          = 1
             },
             new Endpoint
             {
                 CreateDateTime = DateTime.UtcNow,
                 Description    = "fakescim server",
                 Name           = "fakescimserver",
                 Url            = "http://fake:60001/ServiceProviderConfig",
                 Type           = (int)EndpointTypes.SCIM,
                 Order          = 1
             }
         });
     }
 }
Exemplo n.º 8
0
 public ResumeService(ProfileDbContext db)
 {
     _db = db;
 }
Exemplo n.º 9
0
 public StreamService(ProfileDbContext db)
 {
     _db = db;
 }
Exemplo n.º 10
0
 public ArticleTypeService(ProfileDbContext context)
 {
     _Context = context;
 }
Exemplo n.º 11
0
 public UserInfoResumeService(ProfileDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Exemplo n.º 12
0
 public ErrorModel(ProfileDbContext pdb)
 {
     profileDbContext = pdb;
     CurrentProfile = new Profile();
 }
Exemplo n.º 13
0
 public SkillResumeService(ProfileDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Exemplo n.º 14
0
 protected GenericRepository(ProfileDbContext dataContext)
 {
     _dataContext = dataContext;
     _table       = dataContext.Set <TEntity>();
 }
Exemplo n.º 15
0
 public EducationService(ProfileDbContext db)
 {
     _db = db;
 }
Exemplo n.º 16
0
 public ProfileController(ProfileDbContext db)
 {
     _db = db;
 }
Exemplo n.º 17
0
 public RecommendationResumeService(ProfileDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Exemplo n.º 18
0
 public SummaryService(ProfileDbContext db)
 {
     _db = db;
 }
Exemplo n.º 19
0
 public MyCoursesController(ProfileDbContext context)
 {
     _context = context;
 }
Exemplo n.º 20
0
 public PositionRepository(ProfileDbContext context) : base(context)
 {
     UnitOfWork = context;
 }
 public ProfileManageController(ProfileDbContext context, UserManager <ApplicationUser> userManager)
 {
     _profileDbContext = context;
     _userManager      = userManager;
 }
Exemplo n.º 22
0
 public HomeController(ProfileDbContext dbContext)
 {
     _db = dbContext;
 }
 public COsmosDbService(ProfileDbContext ctx)
 {
     this.ctx = ctx;
     // this will makes sure that the database is created
     ctx.Database.EnsureCreated();
 }
Exemplo n.º 24
0
        public static void Initialize(ProfileDbContext context)
        {
            IList <Stream> streams = new List <Stream>
            {
                new Stream
                {
                    StreamFullName  = "Android Developer",
                    StreamShortName = "AD"
                },
                new Stream
                {
                    StreamFullName  = "Java Automated Testing",
                    StreamShortName = "AT"
                },
                new Stream
                {
                    StreamFullName  = "Business Analyst",
                    StreamShortName = "BA"
                },
                new Stream
                {
                    StreamFullName  = "C++ Developer",
                    StreamShortName = "CD"
                },
                new Stream
                {
                    StreamFullName  = "Front-end",
                    StreamShortName = "FD"
                },
                new Stream
                {
                    StreamFullName  = "Java Developer",
                    StreamShortName = "JD"
                },
                new Stream
                {
                    StreamFullName  = "ASP.NET Developer",
                    StreamShortName = "ND"
                },
                new Stream
                {
                    StreamFullName  = "iOS Developer",
                    StreamShortName = "ID"
                },
                new Stream
                {
                    StreamFullName  = "PHP Developer",
                    StreamShortName = "PD"
                },
                new Stream
                {
                    StreamFullName  = "Python Developer",
                    StreamShortName = "PT"
                },
                new Stream
                {
                    StreamFullName  = "Python Automated Testing",
                    StreamShortName = "PT2"
                },
                new Stream
                {
                    StreamFullName  = "Software Testing",
                    StreamShortName = "ST"
                },
                new Stream
                {
                    StreamFullName  = "UI/UX Designer",
                    StreamShortName = "UI/UX"
                }
            };

            foreach (Stream str in streams)
            {
                var existingStream = context.Streams.FirstOrDefault(s => s.StreamShortName == str.StreamShortName);
                if (existingStream != null)
                {
                    existingStream.StreamFullName  = str.StreamFullName;
                    existingStream.StreamShortName = str.StreamShortName;
                    context.Streams.Update(existingStream);
                }
                else
                {
                    context.Streams.Add(str);
                }
            }

            context.SaveChanges();
        }
 public UserDetailsRepository(ProfileDbContext dataContext) : base(dataContext)
 {
 }
Exemplo n.º 26
0
 public ForeignLanguageResumeService(ProfileDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Exemplo n.º 27
0
 public ProfileRepository(ProfileDbContext context)
 {
     _context  = context;
     _entities = context.Set <T>();
 }
 public CountryRepository(ProfileDbContext dataContext) : base(dataContext)
 {
 }
 public CreateRequestServiceCommandHandler(ProfileDbContext profileDbContext)
 {
     _profileDbContext = profileDbContext;
 }
Exemplo n.º 30
0
 public DateService(ProfileDbContext db)
 {
     _db = db;
 }